Project

General

Profile

Download (1.64 KB) Statistics
| Branch: | Tag: | Revision:

calebasse / calebasse / agenda / templates / agenda / service-activity.html @ 67de2724

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

    
15
<table class="main" id="activity">
16
  <thead>
17
      <tr> <th>Heure</th> <th>Libellé</th> <th>Absence</th> <th>Type d'acte</th> <th>Intervenants</th> </tr>
18
  </thead>
19
  <tbody>
20
    {% for row_appointments in appointments_times %}
21
    <tr class="hour-change">
22
      <td class="hour"  rowspan="{{ row_appointments.1.row }}">{{ row_appointments.0 }}</td>
23
      {% for appointment in row_appointments.1.appointments %}
24
      {% if forloop.counter != 1 %}
25
      <tr>
26
        {% endif %}
27
        <td {% if appointment.type == 2 %}colspan="2"{% endif %}>{{ appointment.label }}{% if appointment.paper_id %} - {{ appointment.paper_id }} {% endif %}</td>
28
        <td>{% if appointment.absent %}{{ appointment.state }}{% endif %}</td>
29
        {% if appointment.type != 2 %}<td>{{ appointment.act }}</td>{% endif %}
30
        <td>
31
        {% if appointment.len_participants > 10 %}
32
        {{ appointment.len_participants }} intervenants
33
        {% else %}
34
        {% for participant in appointment.participants %}
35
            <span class="lastname">{{ participant.last_name }}</span> {{ participant.first_name }}<br/>
36
        {% endfor %}
37
        {% endif %}
38
        </td>
39
      </tr>
40
      {% endfor %}
41
    </tr>
42
    {% endfor %}
43
  </tbody>
44
</table>
45
{% endblock %}
(16-16/18)