Merge pull request #51 from toulibre/speaker_count_toptable
Speaker and talk count in caption on the top of the table
This commit is contained in:
commit
ca549d8d1c
|
@ -41,6 +41,8 @@
|
|||
</div>
|
||||
|
||||
<table class="table table-bordered table-hover">
|
||||
<caption>{% trans "Total:" %} {{ speaker_list|length }} {% trans "speaker" %}{{ speaker_list|length|pluralize }}
|
||||
</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{% trans "Username" %}</th>
|
||||
|
@ -95,11 +97,6 @@
|
|||
</tbody>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="5">{% trans "Total:" %} {{ speaker_list|length }} {% trans "speaker" %}{{ speaker_list|length|pluralize }}</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
<form action="" method="post">
|
||||
|
||||
<table class="table table-bordered table-hover">
|
||||
<caption>{% trans "Total:" %} {{ talk_list|length }} {% trans "talk" %}{{ talk_list|length|pluralize }}</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
|
@ -52,9 +53,6 @@
|
|||
{% for talk in talk_list %}
|
||||
{% if forloop.first %}
|
||||
<tbody>
|
||||
<tr>
|
||||
<th colspan="5">{% trans "Total:" %} {{ talk_list|length }} {% trans "talk" %}{{ talk_list|length|pluralize }}</th>
|
||||
</tr>
|
||||
{% endif %}
|
||||
<tr class="{{ talk.accepted|yesno:"success,danger,warning" }}">
|
||||
<td><input type="checkbox" name="talks" value="{{ talk.slug }}"></td>
|
||||
|
@ -87,11 +85,6 @@
|
|||
</tbody>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="5">{% trans "Total:" %} {{ talk_list|length }} {% trans "talk" %}{{ talk_list|length|pluralize }}</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
{% if action_form %}
|
||||
|
|
Loading…
Reference in New Issue