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">
|
2017-02-05 17:35:41 +01:00
|
|
|
<tr><td><strong>Traitée</strong></td><td> <img src="{% if object.traitee %}{% static "images/yes.png" %}{% else %}{% static "images/no.png" %}{% endif %}" /></td></tr>
|
|
|
|
{% if object.traitee %}
|
|
|
|
<tr><td><strong>Traitée par</strong></td><td> {{ object.traitee_par }}</td></tr>
|
|
|
|
<tr><td><strong>Traitée le</strong></td><td> {{ object.processed }}</td></tr>
|
2016-07-29 11:33:26 +02:00
|
|
|
<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>
|
2017-02-05 17:35:41 +01:00
|
|
|
{% if object.traitee %}
|
2016-05-21 23:57:36 +02:00
|
|
|
<div style="text-align: right;">
|
2017-02-05 17:35:41 +01:00
|
|
|
<form action="{% url "petits-cours-demande-retraitement" object.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;">
|
2017-02-05 17:35:41 +01:00
|
|
|
<form action="{% url "petits-cours-demande-traitement" object.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 %}
|