PonyConf/cfp/templates/cfp/staff/participant_details.html

80 lines
3.5 KiB
HTML
Raw Normal View History

2017-07-30 14:57:38 +00:00
{% extends 'cfp/staff/base.html' %}
{% load i18n %}
{% block title %}{{ participant.name }} - {{ conference.name }}{% endblock %}
2017-07-30 14:57:38 +00:00
{% block speakerstab %} class="active"{% endblock %}
{% block content %}
2017-11-03 19:35:24 +00:00
<h1>
{{ participant }}
{% if participant.vip %}<span class="badge">{% trans "VIP" %}</span>{% endif %}
</h1>
2017-07-30 14:57:38 +00:00
<p>
<a class="btn btn-success" href="{% url 'participant-edit' participant.pk %}">{% trans "Edit" %}</a>
{% if not participant.talk_set.exists %} -
<a class="btn btn-danger" href="{% url 'participant-remove' participant.pk %}" >{% trans "Remove" %}</a>
{% endif %}
</p>
2017-08-11 22:50:42 +00:00
2017-07-30 14:57:38 +00:00
<h2>{% trans "Biography" %}</h2>
2017-07-30 15:41:11 +00:00
<p>{{ participant.biography|linebreaksbr }}</p>
{% if participant.notes %}
<h2>{% trans "Notes" %}</h2>
<p>{{ participant.notes|linebreaksbr }}</p>
{% endif %}
2017-07-30 14:57:38 +00:00
2023-01-22 17:53:19 +00:00
<h2>{% trans "Information" %}</h2>
2017-07-30 14:57:38 +00:00
<ul>
2017-11-03 19:35:24 +00:00
{% if participant.vip %}<li><b>{% trans "Invited speaker" %}</b></li>{% endif %}
2017-07-30 14:57:38 +00:00
<li><b>{% trans "E-mail:" %}</b> <a href="mailto:{{ participant.email }}">{{ participant.email }}</a></li>
{% if participant.twitter %}<li><b>{% trans "Twitter:" %}</b> <a href="{{ participant.twitter }}">{{ participant.twitter }}</a></li>{% endif %}
{% if participant.linkedin %}<li><b>{% trans "LinkedIn:" %}</b> <a href="{{ participant.linkedin }}">{{ participant.linkedin }}</a></li>{% endif %}
{% if participant.github %}<li><b>{% trans "Github:" %}</b> <a href="{{ participant.github }}">{{ participant.github }}</a></li>{% endif %}
{% if participant.website %}<li><b>{% trans "Website:" %}</b> <a href="{{ participant.website }}">{{ participant.website }}</a></li>{% endif %}
{% if participant.facebook %}<li><b>{% trans "Facebook:" %}</b> <a href="{{ participant.facebook }}">{{ participant.facebook }}</a></li>{% endif %}
{% if participant.mastodon %}<li><b>{% trans "Mastodon:" %}</b> <a href="{{ participant.mastodon }}">{{ participant.mastodon }}</a></li>{% endif %}
{% if participant.phone_number %}<li><b>{% trans "Phone number:" %}</b> {{ participant.phone_number }}</li>{% endif %}
{% if participant.language %}<li><b>{% trans "Language:" %}</b> {{ participant.language }}</li>{% endif %}
2017-11-04 14:59:58 +00:00
<li><b>{% trans "Secret link:" %}</b> <a href="{{ participant.get_secret_url }}">{{ participant.token }}</a></li>
2017-07-30 14:57:38 +00:00
</ul>
<h2>{% trans "Talks" %}</h2>
{% regroup participant.talk_set.all by category as category_list %}
{% for category in category_list %}
<h3>{{ category.list.0.category }}</h3>
<ul>{% for talk in category.list %}
<li>
2017-11-25 21:41:21 +00:00
<a href="{% url 'talk-details' talk.pk %}">{{ talk }}</a>
2017-07-30 14:57:38 +00:00
<i>{% trans "by" %}</i>
{% for p in talk.speakers.all %}
2017-11-25 21:41:21 +00:00
{% if p == participant %}{{ p }}{% else %}<a href="{% url 'participant-details' p.pk %}">{{ p }}</a>{% endif %}
2017-07-30 14:57:38 +00:00
{% if forloop.revcounter == 2 %} {% trans "and" %} {% elif not forloop.last %}, {% endif %}
{% endfor %}
{% if talk.track %}
<i>{% trans "in" %}</i>
{{ talk.track }}
{% endif %}
<span class="label label-{{ talk.get_status_color }}">{{ talk.get_status_str }}</span>
2017-07-30 14:57:38 +00:00
</li>
{% endfor %}
</ul>
2017-11-09 22:45:10 +00:00
{% empty %}
<p>{% trans "No talks" %}</p>
2017-07-30 14:57:38 +00:00
{% endfor %}
2017-11-09 22:45:10 +00:00
<p>
<a class="btn btn-success" href="{% url 'participant-add-talk' participant.pk %}">{% trans "Add a talk" %}</a>
</p>
2017-07-30 14:57:38 +00:00
<h2>{% trans "Messaging" %}</h2>
{% include 'mailing/_message_list.html' with messages=participant.conversation.message_set.all %}
{% trans "Send a message <em>this message will be received by this participant and all the staff team</em>" as message_form_title %}
{% include 'mailing/_message_form.html' %}
2017-07-30 14:57:38 +00:00
{% endblock %}