forked from DGNum/gestioCOF
5aff771d9c
- `cof` is renamed `gestioCOF` - `gestioncof` become `cof` (yes it looks pretty stupid but it is not) - `bds` is created
39 lines
1.5 KiB
HTML
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 demande.traitee %}{% static "images/yes.png" %}{% else %}{% static "images/no.png" %}{% endif %}" /></td></tr>
|
|
{% if demande.traitee %}
|
|
<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>
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
</table>
|
|
{% if demande.traitee %}
|
|
<div style="text-align: right;">
|
|
<form action="{% url "petits-cours-demande-retraitement" demande.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" demande.id %}">
|
|
<input class="btn btn-primary" type="submit" value="Traiter">
|
|
</form>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|