kpsul/bda/templates/bda-revente.html
2016-07-24 00:48:05 +02:00

33 lines
936 B
HTML

{% extends "base_title.html" %}
{% load staticfiles %}
{% block realcontent %}
<h1>Revente de place</h1>
{% if no_resell %}
<h2>Places non revendues</h2>
<form action="" method="post">
{% csrf_token %}
<ol>
{% for attribution in no_resell %}
<li>{{attribution.spectacle}} <input type="checkbox" name="resell" value="{{attribution.id}}"></li>
{% endfor %}
</ol>
<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 %}
<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>
</form>
{% endif %}
{% endblock %}