2016-06-12 18:44:01 +02:00
|
|
|
{% extends "base_title.html" %}
|
|
|
|
{% load utils %}
|
|
|
|
|
|
|
|
{% block realcontent %}
|
|
|
|
<h2>{{ spectacle }}</h2>
|
|
|
|
<table class='etat-bda' align="center">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Nom</th>
|
|
|
|
<th>Clipper</th>
|
|
|
|
<th>Places</th>
|
|
|
|
<th>Adresse Mail</th>
|
|
|
|
<th>Payé</th>
|
|
|
|
<th>Donné</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
{% for participant in participants %}
|
|
|
|
<tr>
|
|
|
|
<td>{{participant.user.get_full_name}}</td>
|
|
|
|
<td>{{participant.user.username}}</td>
|
|
|
|
<td>{{participant.nb_places}} place{{participant.nb_places|pluralize:",s"}}</td>
|
|
|
|
<td>{{participant.user.email}}</td>
|
|
|
|
<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 18:44:01 +02:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td align="center">
|
|
|
|
<div class={%if participant.given %}"greenratio"{%else%}"redratio"{%endif%}>
|
2016-06-12 20:54:12 +02:00
|
|
|
{% if participant.given %}Oui{% else %}Non{%endif%}
|
2016-06-12 18:44:01 +02:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
2016-06-12 19:10:03 +02:00
|
|
|
</table>
|
2016-06-12 18:44:01 +02:00
|
|
|
<button type="button" onclick="toggle('export-mails')">Afficher/Cacher mails participants</button>
|
|
|
|
<pre id="export-mails" style="display:none">
|
|
|
|
{%for participant in participants %}{{participant.user.email}}, {%endfor%}
|
|
|
|
</pre>
|
|
|
|
<br>
|
|
|
|
<button type="button" onclick="toggle('export-salle')">Afficher/Cacher liste noms</button>
|
2016-06-12 20:54:12 +02:00
|
|
|
{% spaceless %}
|
2016-06-12 18:44:01 +02:00
|
|
|
<pre id="export-salle" style="display:none">
|
2016-06-12 20:54:12 +02:00
|
|
|
{% for participant in participants %}{{participant.user.get_full_name}}{% if participant.nb_places == 2 %}
|
2016-06-12 18:44:01 +02:00
|
|
|
{{participant.user.get_full_name}}{%endif%}
|
|
|
|
{% endfor %}
|
|
|
|
</pre>
|
2016-06-12 20:54:12 +02:00
|
|
|
{%endspaceless%}
|
2016-06-12 18:44:01 +02:00
|
|
|
|
|
|
|
<script>
|
|
|
|
function toggle(id) {
|
|
|
|
var pre = document.getElementById(id) ;
|
|
|
|
pre.style.display = pre.style.display == "none" ? "block" : "none" ;
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{% endblock %}
|