kpsul/gestioncof/templates/details_demande_petit_cours.html
Martin Pépin 45eb384cfd Use class-based views
See #94
2017-02-05 17:41:23 +01:00

39 lines
1.5 KiB
HTML

{% extends "base_title_petitscours.html" %}
{% load staticfiles %}
{% block page_size %}col-sm-8{% endblock %}
{% block realcontent %}
<h2>Demande de petits cours</h2>
{% include "details_demande_petit_cours_infos.html" %}
<hr />
<table class="table table-striped">
<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>
<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>
</td>
</tr>
{% endif %}
</table>
{% if object.traitee %}
<div style="text-align: right;">
<form action="{% url "petits-cours-demande-retraitement" object.id %}">
<input class="btn btn-primary" type="submit" value="Retraiter">
</form>
</div>
{% else %}
<div style="text-align: right;">
<form action="{% url "petits-cours-demande-traitement" object.id %}">
<input class="btn btn-primary" type="submit" value="Traiter">
</form>
</div>
{% endif %}
{% endblock %}