1
|
<div id="tabs-5">
|
2
|
{% for state, last_rdvs in history %}
|
3
|
<div class="frame">
|
4
|
<h3>{% if state %}{{ state.status.name }} depuis le {{ state.date_selected|date:"SHORT_DATE_FORMAT" }}{% else %}Indéfini{% endif %}</h3>
|
5
|
{% if last_rdvs %}
|
6
|
<table class="basic">
|
7
|
<thead>
|
8
|
<tr> <th>Date</th> <th>Pointage</th> <th>Type d'acte</th> <th>Intervenants</th> <th>Commentaire</th></tr>
|
9
|
</thead>
|
10
|
<tbody>
|
11
|
{% for act, state, missing_workers in last_rdvs %}
|
12
|
<tr>
|
13
|
<td>{{ act.date|date:"SHORT_DATE_FORMAT" }} {{ act.time|date:"H:i" }}{% if missing_workers %} <span title="Au moins un intervenant est absent" class="icon-warning-sign absent"></span>{% endif %}</td>
|
14
|
<td>{% if state %}{% if act.is_absent %}<strong>{% endif %}{% if state.state_name == 'ACT_DOUBLE' or state.state_name == 'ACT_LOST' %}Présent ({{ state }}){% else %}{{ state }}{% endif %}{% if act.is_absent %}</strong>{% endif %}{% else %}Non pointé.{% endif %}</td>
|
15
|
<td>{{ act.act_type }}</td>
|
16
|
<td class="width-limited">{% for doctor in act.doctors.all %}
|
17
|
{% if doctor in missing_workers %}<span class="absent" title="Absent">{% endif %}
|
18
|
{{ doctor.first_name }} <span class="lastname">{{ doctor.last_name }}</span>
|
19
|
{% if doctor in missing_workers %}</span>{% endif %}
|
20
|
{% endfor %}</td>
|
21
|
<td class="width-limited">{% if act.comment %}{{ act.comment }}{% endif %}</td>
|
22
|
</tr>
|
23
|
{% endfor %}
|
24
|
</tbody>
|
25
|
</table>
|
26
|
{% endif %}
|
27
|
</div>
|
28
|
{% endfor %}
|
29
|
</div>
|