2016-05-21 23:57:36 +02:00
|
|
|
{% extends "base_title_petitscours.html" %}
|
2016-05-26 01:33:21 +02:00
|
|
|
{% load staticfiles %}
|
2016-05-21 23:57:36 +02:00
|
|
|
|
2016-07-29 11:33:26 +02:00
|
|
|
{% block page_size %}col-sm-8{% endblock %}
|
|
|
|
|
2016-05-21 23:57:36 +02:00
|
|
|
{% block realcontent %}
|
2016-07-29 11:33:26 +02:00
|
|
|
<h2>Demande de petits cours</h2>
|
2016-05-21 23:57:36 +02:00
|
|
|
{% 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>
|
2016-05-21 23:57:36 +02:00
|
|
|
{% 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>
|
2016-05-21 23:57:36 +02:00
|
|
|
<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>
|
2016-05-21 23:57:36 +02:00
|
|
|
{% endif %}
|
2016-07-29 11:33:26 +02:00
|
|
|
</table>
|
2016-05-21 23:57:36 +02:00
|
|
|
{% 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">
|
2016-05-21 23:57:36 +02:00
|
|
|
</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">
|
2016-05-21 23:57:36 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|