PonyConf/cfp/templates/cfp/staff/talk_details.html

132 lines
4.9 KiB
HTML
Raw Normal View History

2017-07-30 14:57:38 +00:00
{% extends 'cfp/staff/base.html' %}
{% load bootstrap3 i18n %}
{% block talkstab %} class="active"{% endblock %}
{% block content %}
<h1>{{ talk.title }}</h1>
2017-11-25 21:41:21 +00:00
<p><a class="btn btn-success" href="{% url 'talk-edit' talk.pk %}">{% trans "Edit" %}</a></p>
2017-07-30 14:57:38 +00:00
2017-08-12 00:05:53 +00:00
<h3>{% trans "Information" %}</h3>
2017-07-30 14:57:38 +00:00
<dl class="dl-horizontal">
2017-08-12 00:05:53 +00:00
<dt>{% trans "Category" %}</dt>
<dd><a href="{{ talk.category.get_absolute_url }}">{{ talk.category }}</a></dd>
<dt>{% trans "Status" %}</dt>
<dd><span class="label label-{{ talk.get_status_color }}">{{ talk.get_status_str }}</span></dd>
2017-07-30 14:57:38 +00:00
<dt>{% trans "Track" %}</dt>
<dd>{% if talk.track %}
<a href="{{ talk.track.get_absolute_url }}">{{ talk.track }}</a>
{% else %}
2017-10-09 17:48:33 +00:00
<em>{% trans "not defined" context "session" %}</em>
2017-07-30 14:57:38 +00:00
{% endif %}</dd>
2017-10-09 17:48:33 +00:00
<dt>{% trans "Tags" %}</dt>
2017-10-17 21:21:08 +00:00
<dd>{% if talk.tags.exists %}{{ talk.get_tags_html }}{% else %}<em>{% trans "none" context "tag" %}</em>{% endif %}</dd>
2017-10-09 17:48:33 +00:00
2017-08-12 00:05:53 +00:00
<dt>{% trans "Timeslot" %}</dt>
2017-07-30 14:57:38 +00:00
<dd>{% if talk.start_date %}
<span class="date">{{ talk.start_date|date:"l d b" }}</span>,
<span class="time">{{ talk.start_date|date:"H:i" }} &ndash; {% if talk.end_date %}{{ talk.end_date|date:"H:i" }}{% else %}?{% endif %}</span>
{% else %}<em>{% trans "not defined" %}</em>
{% endif %}
</dd>
2017-08-12 00:05:53 +00:00
<dt>{% trans "Room" %}</dt>
2017-07-30 14:57:38 +00:00
<dd>{% if talk.room %}
<a href="{{ talk.room.get_absolute_url }}">
<span class="label label-info">{{ talk.room }}</span>
</a>
{% else %}<em>{% trans "not defined" %}</em>
{% endif %}
</dd>
2017-08-12 00:05:53 +00:00
{% comment %}
2017-07-30 14:57:38 +00:00
{% if talk.registration_required %}
<dt>{% trans "Registrations" %}</dt>
<dd>{% if talk.attendees_limit %}{{ talk.attendees.count }} / {{ talk.attendees_limit }}{% else %}{% trans "required but unlimited" %}{% endif %}</dd>
2017-09-27 19:53:35 +00:00
{% endif %
{% endcomment %}
2017-07-30 14:57:38 +00:00
{% if talk.materials %}
<dt>{% trans "Materials" %}</dt>
<dd><a href="{{ talk.materials.url }}">{{ talk.materials_name }}</a></dd>
{% endif %}
{% if talk.video %}
<dt>{% trans "Video" %}</dt>
<dd><a href="{{ talk.video }}">{% trans "download" %}</a></dd>
{% endif %}
</dl>
<h3>{% trans "Description" %}</h3>
<p>{% if talk.description %}{{ talk.description|linebreaksbr }}{% else %}<i>{% trans "No description provided." %}</i>{% endif %}</p>
<h3>{% trans "Speakers" %}</h3>
{% for participant in talk.speakers.all %}
{% if forloop.first %}<ul>{% endif %}
2017-11-19 22:35:29 +00:00
<li>
2017-11-25 21:41:21 +00:00
<a href="{% url 'participant-details' participant.pk %}">{{ participant }}</a>
2017-11-19 22:35:29 +00:00
{% if participant.vip %} <span class="badge">VIP</span>{% endif %}
</li>
2017-07-30 14:57:38 +00:00
{% if forloop.last %}</ul>{% endif %}
{% empty %}
<i>{% trans "No speakers." %}</i>
{% endfor %}
2017-11-27 23:12:28 +00:00
<br />
2017-07-30 14:57:38 +00:00
<h3>{% trans "Notes" %}</h3>
<p>{% if talk.notes %}{{ talk.notes|linebreaksbr }}{% else %}<i>{% trans "No notes." %}</i>{% endif %}</p>
{% if talk.accepted == None %}
<h3>{% trans "Vote" %}</h3>
2017-10-19 18:30:50 +00:00
<p>
2017-07-30 14:57:38 +00:00
<div class="btn-group" role="group" aria-label="vote">
2017-12-10 12:32:19 +00:00
<a class="btn {% if vote == -2 %} active {% endif %}btn-danger" href="{% url 'talk-vote' talk.pk -2 %}">-2</a>
<a class="btn {% if vote == -1 %} active {% endif %}btn-warning" href="{% url 'talk-vote' talk.pk -1 %}">-1</a>
<a class="btn {% if vote == 0 %} active {% endif %}btn-default" href="{% url 'talk-vote' talk.pk 0 %}"> 0</a>
<a class="btn {% if vote == 1 %} active {% endif %}btn-info" href="{% url 'talk-vote' talk.pk 1 %}">+1</a>
<a class="btn {% if vote == 2 %} active {% endif %}btn-success" href="{% url 'talk-vote' talk.pk 2 %}">+2</a>
2017-07-30 14:57:38 +00:00
</div>
2017-10-19 18:30:50 +00:00
</p>
2017-07-30 14:57:38 +00:00
<p>{{ talk.vote_set.count }} {% trans "vote" %}{{ talk.vote_set.count|pluralize }}, {% trans "average:" %} {{ talk.score|floatformat:1 }}</p>
2017-11-25 21:41:21 +00:00
<a href="{% url 'talk-accept' talk.pk %}" class="btn btn-success">{% trans "Accept" %}</a>
<a href="{% url 'talk-decline' talk.pk %}" class="btn btn-danger">{% trans "Decline" %}</a>
2017-10-19 18:30:50 +00:00
{% elif talk.accepted == True and talk.confirmed == None %}
<h3>{% trans "Speaker confirmation" %}</h3>
2017-11-25 21:41:21 +00:00
<a href="{% url 'talk-confirm-by-staff' talk.pk %}" class="btn btn-success">{% trans "The speaker confirmed" %}</a>
<a href="{% url 'talk-desist-by-staff' talk.pk %}" class="btn btn-danger">{% trans "The speaker cancelled" %}</a>
2017-07-30 14:57:38 +00:00
{% endif %}
{% comment %}
{% if talk.registration_required %}
<h3>{% trans "Attendees" %}</h3>
{% for attendee in talk.attendees.all %}
{% if forloop.first %}<ol>{% endif %}
<li><a href="mailto:{{ attendee.get_email }}">{{ attendee.get_name }}</a></li>
{% if forloop.last %}</ol>{% endif %}
{% empty %}
<em>{% trans "No attendees yet." %}</em>
{% endfor %}
{% endif %}
{% endcomment %}
<h3>{% trans "Messaging" %}</h3>
2017-07-30 14:57:38 +00:00
{% include 'mailing/_message_list.html' with messages=talk.conversation.message_set.all %}
2017-08-02 17:34:07 +00:00
{% trans "Comment this talk <em>this message will be received by the staff team only</em>" as message_form_title %}
{% include 'mailing/_message_form.html' %}
2017-07-30 14:57:38 +00:00
{% endblock %}