36 lines
1.3 KiB
HTML
36 lines
1.3 KiB
HTML
|
{% extends "base_title_petitscours.html" %}
|
||
|
|
||
|
{% block realcontent %}
|
||
|
<h3>Demande de petits cours</h3>
|
||
|
{% include "details_demande_petit_cours_infos.html" %}
|
||
|
<hr />
|
||
|
<ul>
|
||
|
<li><strong>Traitée</strong>: <img src="{{ MEDIA_URL }}/images/{% if demande.traitee %}yes.png{% else %}no.png{% endif %}" /></li>
|
||
|
{% if demande.traitee %}
|
||
|
<li><strong>Traitée par</strong>: {{ demande.traitee_par }}</li>
|
||
|
<li><strong>Traitée le</strong>: {{ demande.processed }}</li>
|
||
|
<li>
|
||
|
<strong>Attributions</strong>:
|
||
|
<ul>
|
||
|
{% for attrib in attributions %}
|
||
|
<li>{{ attrib.user.get_full_name }} pour {{ attrib.matiere }}, {{ attrib.date|date:"d E Y" }}</li>
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
</li>
|
||
|
{% endif %}
|
||
|
</ul>
|
||
|
{% if demande.traitee %}
|
||
|
<div style="text-align: right;">
|
||
|
<form action="{% url "petits-cours-demande-retraitement" demande.id %}">
|
||
|
<input type="submit" value="Retraiter">
|
||
|
</form>
|
||
|
</div>
|
||
|
{% else %}
|
||
|
<div style="text-align: right;">
|
||
|
<form action="{% url "petits-cours-demande-traitement" demande.id %}">
|
||
|
<input type="submit" value="Traiter">
|
||
|
</form>
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
{% endblock %}
|