use forms

This commit is contained in:
Ludovic Stephan 2016-07-27 13:08:00 +02:00
parent d12a21d44c
commit 460a135fa5
4 changed files with 94 additions and 27 deletions

View file

@ -7,7 +7,20 @@
<h2>Places non revendues</h2>
<form action="" method="post">
{% csrf_token %}
{{form}}
<input type="submit" value="Revendre les places sélectionnées">
{{resellform}}
<input type="submit" name="resell" value="Revendre les places sélectionnées">
</form>
<h2>Places en cours de revente</h2>
<form action="" method="post">
{% csrf_token %}
<ul>
{% for box in annulform.attributions %}
<li>{{box.choice_label}}{{box.tag}}</li>
{% endfor %}
{% for attrib in overdue %}
<li>{{attrib.spectacle}}</li>
{%endfor%}
</ul>
<input type="submit" name="annul" value="Annuler les reventes sélectionnées">
{% endblock %}