PonyConf/cfp/templates/cfp/staff/talk_list.html

100 lines
4.1 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>{% trans "Talks" %}</h1>
2017-08-12 20:24:55 +00:00
<p><a class="btn btn-primary" role="button" data-toggle="collapse" href="#filter" aria-expanded="{{ show_filters|yesno:"true,false" }}" aria-controles="filter">{% trans "Show filtering options…" %}</a></p>
2017-08-01 12:25:29 +00:00
<div class="collapse{{ show_filters|yesno:" in," }}" id="filter">
<div class="well">
<form class="form-horizontal" method="get">
<div class="row">
<div class="col-md-6 col-xs-6">
{% bootstrap_field filter_form.accepted layout="horizontal" %}
{% bootstrap_field filter_form.confirmed layout="horizontal" %}
2017-08-01 12:25:29 +00:00
{% bootstrap_field filter_form.category layout="horizontal" %}
{% bootstrap_field filter_form.vote layout="horizontal" %}
2017-08-12 00:05:53 +00:00
{% bootstrap_field filter_form.scheduled layout="horizontal" %}
{% bootstrap_field filter_form.room layout="horizontal" %}
2017-09-27 19:53:35 +00:00
{% bootstrap_field filter_form.materials layout="horizontal" %}
{% bootstrap_field filter_form.video layout="horizontal" %}
2017-08-01 12:25:29 +00:00
</div>
<div class="col-md-6 col-xs-6">
2017-10-09 17:48:33 +00:00
{% bootstrap_field filter_form.tag layout="horizontal" %}
2017-08-01 12:25:29 +00:00
{% bootstrap_field filter_form.track layout="horizontal" %}
</div>
</div>
<input type="submit" class="btn btn-success" value="{% trans "Filter" %}">
</form>
</div>
</div>
2017-08-12 14:57:12 +00:00
<form method="post">
2017-07-30 14:57:38 +00:00
<table class="table table-bordered table-hover">
<caption>{% trans "Total:" %} {{ talk_list|length }} {% trans "talk" %}{{ talk_list|length|pluralize }}</caption>
<thead>
<tr>
2017-08-12 14:57:12 +00:00
<th></th>
2017-07-30 14:57:38 +00:00
<th class="text-center">{% trans "Title" %} <a href="?{{ sort_urls.title }}"><span class="glyphicon glyphicon-{{ sort_glyphicons.title }} pull-right"></span></a></th>
2017-08-01 12:00:31 +00:00
<th class="text-center">{% trans "Intervention kind" %} <a href="?{{ sort_urls.category }}"><span class="glyphicon glyphicon-{{ sort_glyphicons.category }} pull-right"></span></a></th>
2017-07-30 14:57:38 +00:00
<th class="text-center">{% trans "Speakers" %}</th>
<th class="text-center">{% trans "Track" %}</th>
2017-10-09 17:48:33 +00:00
<th class="text-center">{% trans "Tags" %}</th>
2017-07-30 14:57:38 +00:00
<th class="text-center">{% trans "Status" %} <a href="?{{ sort_urls.status }}"><span class="glyphicon glyphicon-{{ sort_glyphicons.status }} pull-right"></span></a></th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="7">
<a href="{{ csv_link }}">{% trans "download as csv" %}</a>
</td>
</tr>
</tfoot>
2017-07-30 14:57:38 +00:00
{% for talk in talk_list %}
{% if forloop.first %}
<tbody>
{% endif %}
<tr class="{{ talk.get_status_color }}">
2017-08-12 14:57:12 +00:00
<td><input type="checkbox" name="talks" value="{{ talk.token }}"></td>
2017-07-30 14:57:38 +00:00
<td><a href="{% url 'talk-details' talk.token %}">{{ talk.title }}</a></td>
<td>{{ talk.category }}</td>
<td>
{% for participant in talk.speakers.all %}
<a href="{% url 'participant-details' participant.token %}">{{ participant }}</a>
{% if forloop.revcounter == 2 %} {% trans "and" %} {% elif not forloop.last %}, {% endif %}
{% empty %}
{% endfor %}
</td>
<td>{{ talk.track|default:"" }}</td>
2017-10-09 17:48:33 +00:00
<td>{{ talk.get_tags_html }}</td>
2017-07-30 14:57:38 +00:00
<td>
{{ talk.get_status_str }}
2017-07-30 14:57:38 +00:00
</td>
</tr>
{% if forloop.last%}
</tbody>
{% endif %}
{% endfor %}
</table>
2017-08-12 14:57:12 +00:00
<div id="filter">
<div class="well">
<h4>{% trans "For selected talks:" %}</h4>
{% csrf_token %}
{% bootstrap_form_errors action_form %}
{% bootstrap_form action_form exclude="talks" %}
{% buttons %}
<button type="submit" class="btn btn-primary">{% trans "Apply" %}</button>
{% endbuttons %}
</div>
</div>
</form>
2017-07-30 14:57:38 +00:00
{% endblock %}