forked from DGNum/gestioCOF
53 lines
1.7 KiB
HTML
53 lines
1.7 KiB
HTML
{% extends "base_title.html" %}
|
|
{% load bootstrap %}
|
|
|
|
{% block realcontent %}
|
|
|
|
<h2>Revente de place</h2>
|
|
{% if resellform.attributions %}
|
|
<h3>Places non revendues</h3>
|
|
<form class="form-horizontal" action="" method="post">
|
|
{% csrf_token %}
|
|
{{resellform|bootstrap}}
|
|
<div class="form-actions">
|
|
<input type="submit" class="btn btn-primary" name="resell" value="Revendre les places sélectionnées">
|
|
</div>
|
|
</form>
|
|
{% endif %}
|
|
<br>
|
|
{% if annulform.attributions or overdue %}
|
|
<h3>Places en cours de revente</h3>
|
|
<form action="" method="post">
|
|
{% csrf_token %}
|
|
<div class='form-group'>
|
|
<div class='multiple-checkbox'>
|
|
<ul>
|
|
{% 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 %}
|
|
{% if annulform.attributions %}
|
|
<input type="submit" class="btn btn-primary" name="annul" value="Annuler les reventes sélectionnées">
|
|
{% endif %}
|
|
</form>
|
|
{% endif %}
|
|
<br>
|
|
{% if soldform.attributions %}
|
|
<h3>Places revendues</h3>
|
|
<form action="" method="post">
|
|
{% csrf_token %}
|
|
{{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>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|