Project

General

Profile

Download (1.64 KB) Statistics
| Branch: | Tag: | Revision:
{% extends "agenda/base.html" %}

{% block body-class %}{{ block.super }} no-left-column{% endblock %}

{% block appbar %}
<h2>Activité du {{ service_name }} - {{ date|date:"DATE_FORMAT"|title }}</h2>
<a href="..">Retourner à l'agenda</a>
<button id='print-button'>Imprimer</button>
{% endblock %}

{% block agenda-content %}

<h2 class="print-only">Activité du {{ service_name }} - {{ date|date:"DATE_FORMAT"|title }}</h2>

<table class="main" id="activity">
<thead>
<tr> <th>Heure</th> <th>Libellé</th> <th>Absence</th> <th>Type d'acte</th> <th>Intervenants</th> </tr>
</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 %}
<td {% if appointment.type == 2 %}colspan="2"{% endif %}>{{ appointment.label }}{% if appointment.paper_id %} - {{ appointment.paper_id }} {% endif %}</td>
<td>{% if appointment.absent %}{{ appointment.state }}{% endif %}</td>
{% if appointment.type != 2 %}<td>{{ appointment.act }}</td>{% endif %}
<td>
{% if appointment.len_participants > 10 %}
{{ appointment.len_participants }} intervenants
{% else %}
{% for participant in appointment.participants %}
<span class="lastname">{{ participant.last_name }}</span> {{ participant.first_name }}<br/>
{% endfor %}
{% endif %}
</td>
</tr>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
(16-16/18)