2016-07-25 02:52:49 +02:00
|
|
|
{% extends "base_title.html" %}
|
2016-09-03 18:47:38 +02:00
|
|
|
{% load bootstrap %}
|
2016-07-25 02:52:49 +02:00
|
|
|
|
|
|
|
{% block realcontent %}
|
2016-09-27 16:57:39 +02:00
|
|
|
<h2>Inscriptions pour BdA-Revente</h2>
|
2016-09-27 17:35:29 +02:00
|
|
|
{% if success %}
|
|
|
|
<p class="success">Ton inscription a bien été prise en compte !</p>
|
|
|
|
{% endif %}
|
2016-09-05 03:32:29 +02:00
|
|
|
{% if deja_revente %}
|
|
|
|
<p class="success">Des reventes existent déjà pour certains de ces spectacles ; vérifie les places disponibles sans tirage !</p>
|
|
|
|
{% endif %}
|
2016-09-03 18:47:38 +02:00
|
|
|
<form action="" class="form-horizontal" method="post">
|
2016-07-25 02:52:49 +02:00
|
|
|
{% csrf_token %}
|
2016-10-03 18:52:09 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<h3>Spectacles</h3>
|
|
|
|
<br/>
|
|
|
|
<button type="button" class="btn btn-primary" onClick="select(true)">Tout sélectionner</button>
|
|
|
|
<button type="button" class="btn btn-primary" onClick="select(false)">Tout désélectionner</button>
|
|
|
|
|
|
|
|
<div class="multiple-checkbox">
|
|
|
|
<ul>
|
|
|
|
{% for checkbox in form.spectacles %}
|
|
|
|
<li>{{checkbox}}</li>
|
|
|
|
{%endfor%}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-09-03 18:47:38 +02:00
|
|
|
<input type="submit" class="btn btn-primary" value="S'inscrire pour les places sélectionnées">
|
2016-07-25 02:52:49 +02:00
|
|
|
</form>
|
|
|
|
|
|
|
|
{% if shotgun %}
|
2016-09-03 18:47:38 +02:00
|
|
|
<br>
|
|
|
|
<h3>Places disponibles immédiatement</h3>
|
2016-09-05 02:38:46 +02:00
|
|
|
<ul class="list-unstyled">
|
2016-07-25 02:52:49 +02:00
|
|
|
{% for spectacle in shotgun %}
|
|
|
|
<li><a href="{% url "bda-buy-revente" spectacle.id %}">{{spectacle}}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2016-10-03 18:52:09 +02:00
|
|
|
|
|
|
|
<script language="JavaScript">
|
|
|
|
function select(check) {
|
|
|
|
checkboxes = document.getElementsByName("spectacles");
|
|
|
|
for(var i=0, n=checkboxes.length;i<n;i++) {
|
|
|
|
checkboxes[i].checked = check;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
2016-07-25 02:52:49 +02:00
|
|
|
{% endblock %}
|