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-08 20:07:15 +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>
|
|
|
|
|
2016-10-08 20:07:15 +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 %}
|