Lien vers l'interface admin

This commit is contained in:
ludo 2016-06-24 16:38:14 +02:00
parent 20f3030552
commit 929e70f5d3

View file

@ -5,6 +5,7 @@
{% 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>
<table class='etat-bda' align="center">
<thead>
<tr>
@ -18,13 +19,8 @@
</thead>
{% for participant in participants %}
<tr>
<form action="{% url 'bda-del-attrib' spectacle.tirage.id spectacle.id %}"
method="POST"
onsubmit="return confirm('Voulez-vous vraiment supprimer cette attribution ?');">
{% csrf_token %}
<td>{{participant.name}}</td>
<td>{{participant.username}}
<input type="hidden" name="username" value={{participant.username}}></td>
<td>{{participant.nb_places}} place{{participant.nb_places|pluralize}}</td>
<td>{{participant.email}}</td>
<td>
@ -43,25 +39,8 @@
{%endif%}
</div>
</td>
<td id="bda-part-button"><input type="submit" value="Supprimer"></td>
</form>
</tr>
{% endfor %}
<form action="{% url 'bda-add-attrib' spectacle.tirage.id spectacle.id %}" method="POST">
{% csrf_token %}
<tr>
<td></td>
<td><input type="text" name="username" size=8></td>
<td><select name="nb_places">
<option value=1>1 place</option>
<option value=2>2 places</option>
</select>
</td>
<td></td>
<td></td>
<td align="center"><input type="checkbox" name="given"></td>
<td align="center" id="bda-part-button"><input type="submit" value="Ajouter"></td>
</tr>
</table>
<br>
<button type="button" onclick="toggle('export-mails')">Afficher/Cacher mails participants</button>