clipper changé en identifiant, spaceless enlevé

This commit is contained in:
ludo 2016-06-15 21:21:13 +02:00
parent 5cf89102a9
commit 38acbd82d1

View file

@ -1,5 +1,4 @@
{% extends "base_title.html" %} {% extends "base_title.html" %}
{% load utils %}
{% block realcontent %} {% block realcontent %}
<h2>{{ spectacle }}</h2> <h2>{{ spectacle }}</h2>
@ -7,7 +6,7 @@
<thead> <thead>
<tr> <tr>
<th>Nom</th> <th>Nom</th>
<th>Clipper</th> <th>Identifiant</th>
<th>Places</th> <th>Places</th>
<th>Adresse Mail</th> <th>Adresse Mail</th>
<th>Payé</th> <th>Payé</th>
@ -18,7 +17,7 @@
<tr> <tr>
<td>{{participant.name}}</td> <td>{{participant.name}}</td>
<td>{{participant.username}}</td> <td>{{participant.username}}</td>
<td>{{participant.nb_places}} place{{participant.nb_places|pluralize:",s"}}</td> <td>{{participant.nb_places}} place{{participant.nb_places|pluralize}}</td>
<td>{{participant.email}}</td> <td>{{participant.email}}</td>
<td> <td>
<div class={%if participant.paid %}"greenratio"{%else%}"redratio"{%endif%}> <div class={%if participant.paid %}"greenratio"{%else%}"redratio"{%endif%}>
@ -34,19 +33,18 @@
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>
<br>
<button type="button" onclick="toggle('export-mails')">Afficher/Cacher mails participants</button> <button type="button" onclick="toggle('export-mails')">Afficher/Cacher mails participants</button>
<pre id="export-mails" style="display:none"> <pre id="export-mails" style="display:none">
{%for participant in participants %}{{participant.email}}, {%endfor%} {%for participant in participants %}{{participant.email}}, {%endfor%}
</pre> </pre>
<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>
{% spaceless %}
<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}}{% if participant.nb_places == 2 %}
{{participant.name}}{%endif%} {{participant.name}}{%endif%}
{% endfor %} {% endfor %}
</pre> </pre>
{%endspaceless%}
<script> <script>
function toggle(id) { function toggle(id) {