2013-09-05 22:21:32 +02:00
|
|
|
{% extends "base_title.html" %}
|
2016-07-18 20:12:56 +02:00
|
|
|
{% load staticfiles %}
|
2013-09-05 22:21:32 +02:00
|
|
|
|
|
|
|
{% block realcontent %}
|
2014-08-19 12:54:22 +02:00
|
|
|
<h2>État des inscriptions BdA</h2>
|
2016-07-25 19:19:07 +02:00
|
|
|
<table class="table table-striped">
|
2014-08-19 12:54:22 +02:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th data-sort="string">Titre</th>
|
|
|
|
<th data-sort="int">Date</th>
|
|
|
|
<th data-sort="string">Lieu</th>
|
|
|
|
<th data-sort="int">Places</th>
|
|
|
|
<th data-sort="int">Demandes</th>
|
|
|
|
<th data-sort="float">Ratio</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for spectacle in spectacles %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ spectacle.title }}</td>
|
|
|
|
<td data-sort-value="{{ spectacle.timestamp }}">{{ spectacle.date_no_seconds }}</td>
|
|
|
|
<td data-sort-value="{{ spectacle.location }}">{{ spectacle.location }}</td>
|
|
|
|
<td data-sort-value="{{ spectacle.slots }}">{{ spectacle.slots }} places</td>
|
|
|
|
<td data-sort-value="{{ spectacle.total }}">{{ spectacle.total }} demandes</td>
|
2016-07-25 19:19:07 +02:00
|
|
|
<td data-sort-value="{{ spectacle.ratio |stringformat:".3f" }}"
|
|
|
|
class={% if spectacle.ratio < 1.0 %}
|
2014-08-19 12:54:22 +02:00
|
|
|
"greenratio"
|
|
|
|
{% else %}
|
|
|
|
{% if spectacle.ratio < 2.5 %}
|
|
|
|
"orangeratio"
|
|
|
|
{% else %}
|
|
|
|
"redratio"
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}>
|
|
|
|
{{ spectacle.ratio |floatformat }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2013-09-05 22:21:32 +02:00
|
|
|
{% endfor %}
|
2014-08-19 12:54:22 +02:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2016-07-25 19:19:07 +02:00
|
|
|
<span class="bda-prix">Total : {{ total }} demandes</span>
|
2016-07-18 20:12:56 +02:00
|
|
|
<script type="text/javascript"
|
|
|
|
src="{% static "js/jquery.min.js" %}"></script>
|
|
|
|
<script type="text/javascript"
|
|
|
|
src="{% static "js/joequery-Stupid-Table-Plugin/stupidtable.js" %}"></script>
|
2014-08-19 12:54:22 +02:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(function(){
|
|
|
|
$("table.etat-bda").stupidtable();
|
|
|
|
});
|
|
|
|
</script>
|
2013-09-05 22:21:32 +02:00
|
|
|
{% endblock %}
|