1
|
{% extends "agenda/base.html" %}
|
2
|
|
3
|
{% block body-class %}{{ block.super }} no-left-column{% endblock %}
|
4
|
|
5
|
{% block appbar %}
|
6
|
<h2>Activité du {{ service_name }} - {{ date|date:"DATE_FORMAT"|title }}</h2>
|
7
|
<a href="..">Retourner à l'agenda</a>
|
8
|
<button id='print-button'>Imprimer</button>
|
9
|
{% endblock %}
|
10
|
|
11
|
{% block agenda-content %}
|
12
|
|
13
|
<div class="print-only page-header">{{ date|date:"DATE_FORMAT"|lower }}</div>
|
14
|
|
15
|
<h2 class="print-only">Activité du {{ service_name }} - {{ date|date:"DATE_FORMAT"|title }}</h2>
|
16
|
|
17
|
<table class="main" id="activity">
|
18
|
<thead>
|
19
|
<tr> <th>Heure</th> <th>Libellé</th> <th>Absence</th> <th>Type d'acte</th> <th>Intervenants</th> </tr>
|
20
|
</thead>
|
21
|
<tbody>
|
22
|
{% for row_appointments in appointments_times %}
|
23
|
<tr class="hour-change">
|
24
|
<td class="hour" rowspan="{{ row_appointments.1.row }}">{{ row_appointments.0 }}</td>
|
25
|
{% for appointment in row_appointments.1.appointments %}
|
26
|
{% if forloop.counter != 1 %}
|
27
|
<tr>
|
28
|
{% endif %}
|
29
|
<td {% if appointment.type == 2 %}colspan="2"{% endif %}>{{ appointment.label }}{% if appointment.paper_id %} - {{ appointment.paper_id }} {% endif %}{% if appointment.workers_absent %} <span title="Au moins un intervenant est absent" class="icon-warning-sign absent"></span>{% endif %}</td>
|
30
|
<td>{% if appointment.absent %}{{ appointment.state }}{% endif %}</td>
|
31
|
{% if appointment.type != 2 %}<td>{{ appointment.act }}</td>{% endif %}
|
32
|
<td>
|
33
|
{% if appointment.len_participants > 10 %}
|
34
|
{% if appointment.workers_absent %}<span class="absent" title="Absents : {% for participant in appointment.workers_absent %}{{ participant.last_name }} {{ participant.first_name }} {% endfor %}">{% endif %}
|
35
|
{{ appointment.len_participants }} intervenants
|
36
|
{% if appointment.workers_absent %}</span>{% endif %}
|
37
|
{% else %}
|
38
|
{% for participant in appointment.participants %}
|
39
|
{% if participant in appointment.workers_absent %}<span class="absent" title="Absent">{% endif %}
|
40
|
<span class="lastname">{{ participant.last_name }}</span> {{ participant.first_name }}<br/>
|
41
|
{% if participant in appointment.workers_absent %}</span>{% endif %}
|
42
|
{% endfor %}
|
43
|
{% endif %}
|
44
|
</td>
|
45
|
</tr>
|
46
|
{% endfor %}
|
47
|
</tr>
|
48
|
{% endfor %}
|
49
|
</tbody>
|
50
|
</table>
|
51
|
{% endblock %}
|