gestioCOF/gestioncof/templates/gestioncof/traitement_demande_petit_cours.html
Qwann 924a289a78 cleaning UGLY django template style
and moving some template files
2017-02-11 16:21:13 +01:00

51 lines
1.9 KiB
HTML

{% extends "base_title_petitscours.html" %}
{% block realcontent %}
<h2>Traitement de la demande de petits cours {{ demande.id }}</h2>
{% include "details_demande_petit_cours_infos.html" %}
<hr />
{% if errors %}
<div class="error">
Attention:
<ul>{% for error in errors %}<li>{{ error }}</li>{% endfor %}</ul>
</div>
{% endif %}
{% if unsatisfied %}
<div class="error">
Attention: Impossible de trouver des propositions pour les matières suivantes:
<ul>
{% for matiere in unsatisfied %}<li>{{ matiere }}</li>{% endfor %}
</ul>
</div>
{% endif %}
{% if proposals %}
<form method="post">
{% csrf_token %}
Propositions:
<ul>
{% for proposeduser, matieres in proposed_for %}
<li>{{ proposeduser }} pour {% for matiere in matieres %}{% if forloop.counter0 > 0 %}, {% endif %}{{ matiere }}{% endfor %}</li>
{% endfor %}
</ul>
<h4>Mails pour les membres proposés :</h4>
{% for proposeduser, mail in proposed_mails %}
<h5>Pour {{ proposeduser }}:</h5>
{% with object=mail.0 content=mail.1 %}
<pre>{{ object }}</pre>
<pre>{{ content }}</pre>
{% endwith %}
{% endfor %}
<h4>Mail pour l'auteur de la demande :</h4>
{% with object=mainmail.0 content=mainmail.1 %}
<pre style="margin-top: 15px;">{{ object }}</pre>
<pre style="margin-top: 15px;">{{ content|safe }}</pre>
{% endwith %}
<input type="hidden" name="attribdata" value="{{ attribdata }}" />
{% if redo %}<input type="hidden" name="redo" value="1" />{% endif %}
<input class="btn btn-primary pull-right" type="submit" value="Valider 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>
{% endif %}
{% endblock %}