calebasse/calebasse/agenda/templates/agenda/service-activity.html @ e5150d7d
| a5a20700 | Benjamin Dauvergne | {% extends "agenda/base.html" %}
|
|
| 3fb83060 | Jérôme Schneider | ||
| 6b2a48e2 | Benjamin Dauvergne | {% block body-class %}{{ block.super }} no-left-column{% endblock %}
|
|
| 3fb83060 | Jérôme Schneider | {% block appbar %}
|
|
| 4a9a4001 | Mikaël Ates | <h2>Activité du {{ service_name }} - {{ date|date:"DATE_FORMAT"|title }}</h2>
|
|
| 44c4cbbb | Jérôme Schneider | <a href="..">Retourner à l'agenda</a>
|
|
| a5a20700 | Benjamin Dauvergne | <button id='print-button'>Imprimer</button>
|
|
| 3fb83060 | Jérôme Schneider | {% endblock %}
|
|
| a5a20700 | Benjamin Dauvergne | {% block agenda-content %}
|
|
| 15c28f72 | Frédéric Péters | ||
| 4a9a4001 | Mikaël Ates | <h2 class="print-only">Activité du {{ service_name }} - {{ date|date:"DATE_FORMAT"|title }}</h2>
|
|
| 15c28f72 | Frédéric Péters | ||
| 44c4cbbb | Jérôme Schneider | <table class="main" id="activity">
|
|
<thead>
|
|||
| 15a79142 | Mikaël Ates | <tr> <th>Heure</th> <th>Libellé</th> <th>Absence</th> <th>Type d'acte</th> <th>Intervenants</th> </tr>
|
|
| 44c4cbbb | Jérôme Schneider | </thead>
|
|
<tbody>
|
|||
{% for row_appointments in appointments_times %}
|
|||
<tr class="hour-change">
|
|||
<td class="hour" rowspan="{{ row_appointments.1.row }}">{{ row_appointments.0 }}</td>
|
|||
{% for appointment in row_appointments.1.appointments %}
|
|||
{% if forloop.counter != 1 %}
|
|||
<tr>
|
|||
{% endif %}
|
|||
| e6b125bd | Mikaël Ates | <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>
|
|
| 15a79142 | Mikaël Ates | <td>{% if appointment.absent %}{{ appointment.state }}{% endif %}</td>
|
|
| 477e1b65 | Frédéric Péters | {% if appointment.type != 2 %}<td>{{ appointment.act }}</td>{% endif %}
|
|
| 4afd04c8 | Mikaël Ates | <td>
|
|
| 15a79142 | Mikaël Ates | {% if appointment.len_participants > 10 %}
|
|
| e6b125bd | Mikaël Ates | {% if appointment.workers_absent %}<span class="absent" title="Absents : {% for participant in appointment.workers_absent %}{{ participant.last_name }} {{ participant.first_name }} {% endfor %}">{% endif %}
|
|
{{ appointment.len_participants }} intervenants
|
|||
{% if appointment.workers_absent %}</span>{% endif %}
|
|||
| 15a79142 | Mikaël Ates | {% else %}
|
|
| 4afd04c8 | Mikaël Ates | {% for participant in appointment.participants %}
|
|
| e6b125bd | Mikaël Ates | {% if participant in appointment.workers_absent %}<span class="absent" title="Absent">{% endif %}
|
|
| 4afd04c8 | Mikaël Ates | <span class="lastname">{{ participant.last_name }}</span> {{ participant.first_name }}<br/>
|
|
| e6b125bd | Mikaël Ates | {% if participant in appointment.workers_absent %}</span>{% endif %}
|
|
| 4afd04c8 | Mikaël Ates | {% endfor %}
|
|
| 15a79142 | Mikaël Ates | {% endif %}
|
|
| 4afd04c8 | Mikaël Ates | </td>
|
|
| ad9330e1 | Jérôme Schneider | </tr>
|
|
{% endfor %}
|
|||
| 44c4cbbb | Jérôme Schneider | </tr>
|
|
{% endfor %}
|
|||
</tbody>
|
|||
</table>
|
|||
| 3fb83060 | Jérôme Schneider | {% endblock %}
|