styling forms
This commit is contained in:
parent
c26bb5c309
commit
a32278d765
1 changed files with 38 additions and 9 deletions
|
@ -1,26 +1,55 @@
|
||||||
{% extends "base_title.html" %}
|
{% extends "base_title.html" %}
|
||||||
{% load staticfiles %}
|
{% load bootstrap %}
|
||||||
|
|
||||||
{% block realcontent %}
|
{% block realcontent %}
|
||||||
|
|
||||||
<h2>Revente de place</h2>
|
<h2>Revente de place</h2>
|
||||||
<h3>Places non revendues</h3>
|
<h3>Places non revendues</h3>
|
||||||
<form action="" method="post">
|
<form class="form-horizontal" action="" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{resellform}}
|
<div class="form-group">
|
||||||
<input type="submit" name="resell" value="Revendre les places sélectionnées">
|
<div class="multiple-checkbox">
|
||||||
|
<ul>
|
||||||
|
{% for box in resellform.attributions %}
|
||||||
|
<li>
|
||||||
|
{{box.tag}}
|
||||||
|
{{box.choice_label}}
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-actions">
|
||||||
|
<input type="submit" class="btn btn-primary" name="resell" value="Revendre les places sélectionnées">
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
<br>
|
||||||
<h3>Places en cours de revente</h3>
|
<h3>Places en cours de revente</h3>
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="multiple-checkbox">
|
||||||
<ul>
|
<ul>
|
||||||
{% for box in annulform.attributions %}
|
{% for box in annulform.attributions %}
|
||||||
<li>{{box.choice_label}}{{box.tag}}</li>
|
<li>
|
||||||
|
{{box.tag}}
|
||||||
|
{{box.choice_label}}
|
||||||
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% for attrib in overdue %}
|
||||||
|
<li>
|
||||||
|
<input type="checkbox" style="visibility:hidden">
|
||||||
|
{{attrib.spectacle}}
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{annulform | bootstrap}}
|
||||||
{% for attrib in overdue %}
|
{% for attrib in overdue %}
|
||||||
<li>{{attrib.spectacle}}</li>
|
<li>{{attrib.spectacle}}</li>
|
||||||
{%endfor%}
|
{%endfor%}
|
||||||
</ul>
|
</ul>
|
||||||
<input type="submit" name="annul" value="Annuler les reventes sélectionnées">
|
<input type="submit" name="annul" value="Annuler les reventes sélectionnées">
|
||||||
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue