2016-06-12 17:57:31 +02:00
|
|
|
{% extends "base_title.html" %}
|
|
|
|
|
|
|
|
{% block realcontent %}
|
|
|
|
<h2>{{ spectacle }}</h2>
|
2016-06-16 15:09:14 +02:00
|
|
|
{% for message in messages %}
|
2016-06-16 22:55:34 +02:00
|
|
|
<h2 class="{{message.tags}}" align="center">{{ message }}</h2>
|
2016-06-16 15:09:14 +02:00
|
|
|
{% endfor %}
|
2016-06-24 16:38:14 +02:00
|
|
|
<h3><a href="{% url "admin:bda_attribution_add" %}?spectacle={{spectacle.id}}">Ajouter une attribution</a></h3>
|
2016-06-12 17:57:31 +02:00
|
|
|
<table class='etat-bda' align="center">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Nom</th>
|
2016-06-15 21:21:13 +02:00
|
|
|
<th>Identifiant</th>
|
2016-06-12 17:57:31 +02:00
|
|
|
<th>Places</th>
|
|
|
|
<th>Adresse Mail</th>
|
|
|
|
<th>Payé</th>
|
|
|
|
<th>Donné</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
{% for participant in participants %}
|
|
|
|
<tr>
|
2016-06-15 19:34:10 +02:00
|
|
|
<td>{{participant.name}}</td>
|
2016-06-16 22:55:34 +02:00
|
|
|
<td>{{participant.username}}
|
2016-06-15 21:21:13 +02:00
|
|
|
<td>{{participant.nb_places}} place{{participant.nb_places|pluralize}}</td>
|
2016-06-15 19:34:10 +02:00
|
|
|
<td>{{participant.email}}</td>
|
2016-06-12 17:57:31 +02:00
|
|
|
<td>
|
|
|
|
<div class={%if participant.paid %}"greenratio"{%else%}"redratio"{%endif%}>
|
2016-06-12 20:54:12 +02:00
|
|
|
{% if participant.paid %}Oui{% else %}Non{%endif%}
|
2016-06-12 17:57:31 +02:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td align="center">
|
2016-06-16 22:55:34 +02:00
|
|
|
<div class={%if participant.given == participant.nb_places %}"greenratio"
|
|
|
|
{%elif participant.given == 0%}"redratio"
|
|
|
|
{%else%}"orangeratio"
|
|
|
|
{%endif%}>
|
|
|
|
{% if participant.given == participant.nb_places %}Oui
|
|
|
|
{% elif participant.given == 0 %}Non
|
|
|
|
{% else %}{{participant.given}}/{{participant.nb_places}}
|
|
|
|
{%endif%}
|
2016-06-12 17:57:31 +02:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
2016-06-15 21:21:13 +02:00
|
|
|
<br>
|
2016-06-12 18:44:01 +02:00
|
|
|
<button type="button" onclick="toggle('export-mails')">Afficher/Cacher mails participants</button>
|
2016-06-12 17:57:31 +02:00
|
|
|
<pre id="export-mails" style="display:none">
|
2016-06-15 19:34:10 +02:00
|
|
|
{%for participant in participants %}{{participant.email}}, {%endfor%}
|
2016-06-12 17:57:31 +02:00
|
|
|
</pre>
|
|
|
|
<br>
|
|
|
|
<button type="button" onclick="toggle('export-salle')">Afficher/Cacher liste noms</button>
|
|
|
|
<pre id="export-salle" style="display:none">
|
2016-06-15 19:34:10 +02:00
|
|
|
{% for participant in participants %}{{participant.name}}{% if participant.nb_places == 2 %}
|
|
|
|
{{participant.name}}{%endif%}
|
2016-06-12 17:57:31 +02:00
|
|
|
{% endfor %}
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
function toggle(id) {
|
|
|
|
var pre = document.getElementById(id) ;
|
|
|
|
pre.style.display = pre.style.display == "none" ? "block" : "none" ;
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{% endblock %}
|