WIP: petitscours: UI improvements #843
1 changed files with 44 additions and 40 deletions
|
@ -21,9 +21,11 @@
|
|||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if proposals %}
|
||||
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{% if redo %}<input type="hidden" name="redo" value="1" />{% endif %}
|
||||
{% if proposals %}
|
||||
{% for matiere, users in proposals %}
|
||||
<h4>{{ matiere }}</h4>
|
||||
{% for i in "012"|make_list %}{% if i|add:"0" < users|length %}
|
||||
|
@ -53,13 +55,15 @@
|
|||
{% endfor %}
|
||||
{% endfor %}
|
||||
<input type="hidden" name="preparing" value="1" />
|
||||
{% if redo %}<input type="hidden" name="redo" value="1" />{% endif %}
|
||||
<input type="submit" value="Préparer le {% if redo %}re{% endif %}traitement de la demande" />
|
||||
</form>
|
||||
{% else %}
|
||||
<h3>Impossible de trouver des propositions pour cette demande</h3>
|
||||
<div class="error" style="font-size: 1.6em; margin-top: 10px;">Traitement manuel obligatoire !</div>
|
||||
<input type="hidden" name="manual" value="1" />
|
||||
<input class="btn btn-primary pull-right" type="submit" value="Marquer comme traitée" />
|
||||
{% endif %}
|
||||
</form>
|
||||
|
||||
<p>
|
||||
<a href="{% url 'petits-cours-demandes-list' %}">Retour à la liste des demandes</a>
|
||||
</p>
|
||||
|
|
Loading…
Reference in a new issue