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