Lien vers l'interface admin
This commit is contained in:
parent
20f3030552
commit
929e70f5d3
1 changed files with 1 additions and 22 deletions
|
@ -5,6 +5,7 @@
|
||||||
{% for message in messages %}
|
{% for message in messages %}
|
||||||
<h2 class="{{message.tags}}" align="center">{{ message }}</h2>
|
<h2 class="{{message.tags}}" align="center">{{ message }}</h2>
|
||||||
{% endfor %}
|
{% 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>
|
||||||
|
@ -18,13 +19,8 @@
|
||||||
</thead>
|
</thead>
|
||||||
{% for participant in participants %}
|
{% for participant in participants %}
|
||||||
<tr>
|
<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.name}}</td>
|
||||||
<td>{{participant.username}}
|
<td>{{participant.username}}
|
||||||
<input type="hidden" name="username" value={{participant.username}}></td>
|
|
||||||
<td>{{participant.nb_places}} place{{participant.nb_places|pluralize}}</td>
|
<td>{{participant.nb_places}} place{{participant.nb_places|pluralize}}</td>
|
||||||
<td>{{participant.email}}</td>
|
<td>{{participant.email}}</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -43,25 +39,8 @@
|
||||||
{%endif%}
|
{%endif%}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td id="bda-part-button"><input type="submit" value="Supprimer"></td>
|
|
||||||
</form>
|
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% 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>
|
</table>
|
||||||
<br>
|
<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>
|
||||||
|
|
Loading…
Reference in a new issue