kpsul/gestioncof/templates/details_demande_petit_cours.html

40 lines
1.5 KiB
HTML
Raw Normal View History

{% extends "base_title_petitscours.html" %}
{% load staticfiles %}
2016-07-29 11:33:26 +02:00
{% block page_size %}col-sm-8{% endblock %}
{% block realcontent %}
2016-07-29 11:33:26 +02:00
<h2>Demande de petits cours</h2>
{% include "details_demande_petit_cours_infos.html" %}
<hr />
2016-07-29 11:33:26 +02:00
<table class="table table-striped">
<tr><td><strong>Traitée</strong></td><td> <img src="{% if demande.traitee %}{% static "images/yes.png" %}{% else %}{% static "images/no.png" %}{% endif %}" /></td></tr>
{% if demande.traitee %}
2016-07-29 11:33:26 +02:00
<tr><td><strong>Traitée par</strong></td><td> {{ demande.traitee_par }}</td></tr>
<tr><td><strong>Traitée le</strong></td><td> {{ demande.processed }}</td></tr>
<tr><td>
<strong>Attributions</strong></td><td>
<ul>
{% for attrib in attributions %}
<li>{{ attrib.user.get_full_name }} pour {{ attrib.matiere }}, {{ attrib.date|date:"d E Y" }}</li>
{% endfor %}
</ul>
2016-07-29 11:33:26 +02:00
</td>
</tr>
{% endif %}
2016-07-29 11:33:26 +02:00
</table>
{% if demande.traitee %}
<div style="text-align: right;">
<form action="{% url "petits-cours-demande-retraitement" demande.id %}">
2016-07-29 11:33:26 +02:00
<input class="btn btn-primary" type="submit" value="Retraiter">
</form>
</div>
{% else %}
<div style="text-align: right;">
<form action="{% url "petits-cours-demande-traitement" demande.id %}">
2016-07-29 11:33:26 +02:00
<input class="btn btn-primary" type="submit" value="Traiter">
</form>
</div>
{% endif %}
{% endblock %}