annulations reventes

This commit is contained in:
Ludovic Stephan 2016-07-24 00:48:05 +02:00
parent 2aaf9f681e
commit 8f7b036fbc
3 changed files with 18 additions and 9 deletions

View file

@ -16,14 +16,18 @@
<input type="submit" value="Revendre les places sélectionnées">
</form>
{%endif%}
{% if resell %}
<h2>Places en cours de revente</h2>
<form action="" method="post">
{% csrf_token %}
<ol>
{% for attribution in resell %}
<li>{{attribution.spectacle}} <input type="checkbox" name="annul" value="{{attribution.id}}"></li>
<form action="" method="post">
{% csrf_token %}
<input type="hidden" name="annul" value="{{attribution.id}}">
<li>{{attribution.spectacle}} {% if attribution.revente.cancellable %}<input type="submit" value="Supprimer">{%endif%}</li>
{% endfor %}
</ol>
<input type="submit" value="Annuler les reventes sélectionnées">
</form>
{% endif %}
{% endblock %}