Finished >2 attributions support

This commit is contained in:
ludo 2016-06-25 03:37:28 +02:00
parent 67b56edc33
commit 4596d588e9

View file

@ -2,10 +2,7 @@
{% block realcontent %}
<h2>{{ spectacle }}</h2>
{% for message in messages %}
<h2 class="{{message.tags}}" align="center">{{ message }}</h2>
{% endfor %}
<h3><a href="{% url "admin:bda_attribution_add" %}?spectacle={{spectacle.id}}">Ajouter une attribution</a></h3>
<h3><a href="{% url "admin:bda_attribution_add" %}?spectacle={{spectacle.id}}">Ajouter une attribution</a></h3>
<table class='etat-bda' align="center">
<thead>
<tr>
@ -50,8 +47,7 @@
<br>
<button type="button" onclick="toggle('export-salle')">Afficher/Cacher liste noms</button>
<pre id="export-salle" style="display:none">
{% for participant in participants %}{{participant.name}}{% if participant.nb_places == 2 %}
{{participant.name}}{%endif%}
{% for participant in participants %}{{participant.name}} : {{participant.nb_places}} places
{% endfor %}
</pre>