2013-09-05 22:21:32 +02:00
|
|
|
{% extends "base_title.html" %}
|
2016-09-03 05:23:05 +02:00
|
|
|
{% load bootstrap %}
|
2013-09-05 22:21:32 +02:00
|
|
|
|
|
|
|
{% block realcontent %}
|
|
|
|
|
2016-09-03 01:39:33 +02:00
|
|
|
<h2>Revente de place</h2>
|
2017-02-16 04:52:44 +01:00
|
|
|
{% if resellform.attributions %}
|
2016-09-03 01:39:33 +02:00
|
|
|
<h3>Places non revendues</h3>
|
2016-09-03 05:23:05 +02:00
|
|
|
<form class="form-horizontal" action="" method="post">
|
2016-07-23 22:22:17 +02:00
|
|
|
{% csrf_token %}
|
2017-02-16 04:52:44 +01:00
|
|
|
{{resellform|bootstrap}}
|
2016-09-03 05:23:05 +02:00
|
|
|
<div class="form-actions">
|
|
|
|
<input type="submit" class="btn btn-primary" name="resell" value="Revendre les places sélectionnées">
|
|
|
|
</div>
|
2016-07-23 22:22:17 +02:00
|
|
|
</form>
|
2017-02-16 04:52:44 +01:00
|
|
|
{% endif %}
|
2016-09-03 05:23:05 +02:00
|
|
|
<br>
|
2016-09-05 02:29:49 +02:00
|
|
|
{% if annulform.attributions or overdue %}
|
2016-09-03 01:39:33 +02:00
|
|
|
<h3>Places en cours de revente</h3>
|
2016-07-27 13:08:00 +02:00
|
|
|
<form action="" method="post">
|
|
|
|
{% csrf_token %}
|
2017-02-16 04:52:44 +01:00
|
|
|
<div class='form-group'>
|
|
|
|
<div class='multiple-checkbox'>
|
2016-09-03 05:23:05 +02:00
|
|
|
<ul>
|
2017-02-16 04:52:44 +01:00
|
|
|
{% for attrib in annulform.attributions %}
|
|
|
|
<li>{{attrib.tag}} {{attrib.choice_label}}</li>
|
|
|
|
{% endfor %}
|
|
|
|
{% for attrib in overdue %}
|
|
|
|
<li>
|
|
|
|
<input type="checkbox" style="visibility:hidden">
|
|
|
|
{{attrib.spectacle}}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
2016-09-05 02:29:49 +02:00
|
|
|
{% if annulform.attributions %}
|
2016-09-03 18:46:56 +02:00
|
|
|
<input type="submit" class="btn btn-primary" name="annul" value="Annuler les reventes sélectionnées">
|
2016-09-05 02:29:49 +02:00
|
|
|
{% endif %}
|
2016-09-03 05:23:05 +02:00
|
|
|
</form>
|
2016-09-05 02:29:49 +02:00
|
|
|
{% endif %}
|
|
|
|
<br>
|
2017-02-16 04:52:44 +01:00
|
|
|
{% if soldform.attributions %}
|
2016-09-05 02:29:49 +02:00
|
|
|
<h3>Places revendues</h3>
|
2017-02-16 04:52:44 +01:00
|
|
|
<form action="" method="post">
|
2016-09-05 02:29:49 +02:00
|
|
|
{% csrf_token %}
|
2017-02-16 04:52:44 +01:00
|
|
|
{{soldform|bootstrap}}
|
|
|
|
<button type="submit" class="btn btn-primary" name="transfer">Transférer</button>
|
|
|
|
<button type="submit" class="btn btn-primary" name="reinit">Réinitialiser</button>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
|
|
|
{% if not resellform.attributions and not soldform.attributions and not overdue and not annulform.attributions %}
|
|
|
|
<p>Plus de reventes possibles !</p>
|
2016-09-05 02:29:49 +02:00
|
|
|
{% endif %}
|
2017-02-16 04:52:44 +01:00
|
|
|
|
2013-09-05 22:21:32 +02:00
|
|
|
{% endblock %}
|