Project

General

Profile

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

calebasse / calebasse / agenda / templates / agenda / service-activity.html @ d86f6cd6

1
{% extends "calebasse/base.html" %}
2
{% block extrascripts %}
3
<script></script>
4
{% endblock %}
5

    
6
{% block title %}{{ block.super }} - Agenda {% endblock %}
7

    
8
{% block header %}
9
  {{ block.super }}
10
  <span>Agenda - {{ service_name }}</spam>
11
{% endblock %}
12

    
13
{% block appbar %}
14
<h2>Activité du service - {{ date|date:"DATE_FORMAT" }}</h2>
15
    <a href="..">Retourner à l'agenda</a>
16
    <button>Imprimer</button>
17
{% endblock %}
18

    
19
{% block content %}
20
<div class="content">
21
   <div id="datesel">
22
     <a href="../../{{ previous_month|date:"SHORT_DATE_FORMAT"}}/activite-du-service">««</a>
23
     <a href="../../{{ previous_day|date:"SHORT_DATE_FORMAT"}}/activite-du-service">«</a>
24
     <input id="agenda-date" value="{{ date|date:"DATE_FORMAT" }}"/>
25
     <a href="../../{{ next_day|date:"SHORT_DATE_FORMAT"}}/activite-du-service">»</a>
26
     <a href="../../{{ next_month|date:"SHORT_DATE_FORMAT"}}/activite-du-service">»»</a>
27
   </div>
28

    
29
  <table class="main" id="activity">
30
    <thead>
31
      <tr> <th>Heure</th> <th>Durée</th> <th>Patient</th> <th>Thérapeute(s)</th> <th>Acte</th> </tr>
32
    </thead>
33
    <tbody>
34
      {% for row_appointments in appointments_times %}
35
      <tr class="hour-change">
36
        <td class="hour"  rowspan="{{ row_appointments.1.row }}">{{ row_appointments.0 }}</td>
37
        {% for appointment in row_appointments.1.appointments %}
38
        {% if forloop.counter != 1 %}
39
        <tr>
40
          {% endif %}
41
          <td>{{ appointment.length }}</td>
42
          <td>{{ appointment.patient }}</td>
43
          <td>{{ appointment.therapists }}</td>
44
          <td>{{ appointment.act }}</td>
45
        </tr>
46
        {% endfor %}
47
      </tr>
48
      {% endfor %}
49
    </tbody>
50
  </table>
51
</div>
52
{% endblock %}
53

    
(7-7/7)