Project

General

Profile

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

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

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 - 5 juillet 2012</h2>
15
    <a href="agenda.html">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 time, row_appointments in appointments_times.items %}
35
      <tr class="hour-change">
36
        <td class="hour"  rowspan="{{ row_appointments.row }}">{{ time }}</td>
37
        {% for appointment in row_appointments.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

    
(6-6/6)