Project

General

Profile

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

calebasse / calebasse / agenda / templates / agenda / index.html @ a5a20700

1
{% extends "agenda/base.html" %}
2
{% load url from future %}
3

    
4
{% block appbar %}
5
    <h2>Agenda</h2>
6
    <a href="../..">Retourner à l'accueil</a>
7
    <button class="newevent" data-hour="" data-url="{% url 'new-event' service=service date=date %}">Nouvel événement</button>
8
    <button class="newrdv" data-hour="" data-url="{% url 'nouveau-rdv' service=service date=date %}">Nouveau rendez-vous patient</button>
9
{% endblock %}
10

    
11
{% block beforecontent %}
12
    <div id="extra-top-links">
13
     <a href="activite-du-service">Activité du service</a>
14
15
     <a href="validation-des-actes">Validation des actes</a>
16
17
     <a href="rendez-vous-periodiques">Rendez-vous périodiques</a>
18
    </div>
19

    
20

    
21
    <div id="users">
22
    <div id="filtre">
23
     <input type="text"/>
24
    </div>
25
    <dl>
26
     {% for workers_type in workers_types %}
27
     <dt>{{ workers_type.type }}</dt>
28
     <dd><ul>
29
       {% for worker in workers_type.workers %}
30
       <li id="selector-worker-{{worker.id}}" class="person-item" data-worker-id="{{worker.id}}" data-target=".worker-{{worker.id}}.agenda">{{ worker.display_name }} <span title="cliquer pour déselectionner">(-)</span></li>
31
       {% endfor %}
32
     </ul></dd>
33
     {% endfor %}
34
   </dl>
35
 </div>
36
{% endblock %}
37

    
38
{% block agenda-content %}
39
   <table>
40
    <tbody>
41
    <tr>
42
     <td id="dispos">
43
      Disponibilités
44
      <table>
45
        {% for start_time, quaters in disponibility.items %}
46
          <tr class="hour-mark">
47
              <td rowspan="4">{{ start_time }}:00</td>
48
              {% for quater in quaters|slice:":1" %}
49
                {% for value in quater %}
50
                <td class="worker-{{ value.id }} agenda {{ value.dispo }}" style="display: none; "></td>
51
                {% endfor %}
52
              {% endfor %}
53
          </tr>
54
          {% for quater in quaters|slice:"1:4" %}
55
            <tr>
56
              {% for value in quater %}
57
                <td class="worker-{{ value.id }} agenda {{ value.dispo }}" style="display: none; "></td>
58
              {% endfor %}
59
            </tr>
60
          {% endfor %}
61
        {% endfor %}
62
      </table>
63
     </td>
64

    
65
     <td id="agendas">
66
       <div id="tabs">
67
       <ul>
68
        {% for worker_agenda in workers_agenda %}
69
           <li><a href="#tabs-worker-{{ worker_agenda.worker.id }}" class="worker-{{ worker_agenda.worker.id }} agenda" style="display: none;">{{ worker_agenda.worker.display_name }}</a></li>
70
        {% endfor %}
71
       </ul>
72
       {% for worker_agenda in workers_agenda %}
73
       <div id="tabs-worker-{{ worker_agenda.worker.id }}" class="tabs agenda worker-{{ worker_agenda.worker.id }}" style="display: none;">
74
         <a class="print" href="#">Imprimer</a>
75
         <div>
76
           {% for appointment in worker_agenda.appointments %}
77
           <h3 class="{{ appointment.type }} appointment">
78
             <span class="hour">{{ appointment.begin_hour }}</span>
79
             {% if appointment.title %} — {{ appointment.title }}  {% endif %}
80
             {% if appointment.length %} — {{ appointment.length }}m {% endif %}
81
             {% if appointment.workers_initial %} —{{ appointment.workers_initial }} {% endif %}
82
             {% if appointment.act_type %} — {{ appointment.act_type }} {% endif %}
83
             {% if appointment.room %} — {{ appointment.room }} {% endif %}
84
             <span class="right">
85
                 {% if appointment.service and appointment.service != service %}
86
                 <span class="box {{ appointment.service }}" title="{{ appointment.service }}"></span>
87
                 {% endif %}
88
                 {% if appointment.convocation_sent %}
89
                 <img title="Une convocation a été envoyée" src="{{ STATIC_URL }}images/emblem-mail.png">
90
                 {% endif %}
91
                 {% if appointment.description %}
92
                 <img title="Un commentaire existe" src="{{ STATIC_URL }}images/emblem-documents.png">
93
                 {% endif %}
94
                 {% if appointment.event_id %}
95
                 <img title="Editer un rendez-vous" src="{{ STATIC_URL }}images/accessories-text-editor.png">
96
                 <img class="remove-appointment" title="Supprimer un rendez-vous" src="{{ STATIC_URL }}images/list-remove.png" data-occurrence-id="{{ appointment.occurrence_id }}" data-rdv="{{ appointment.title }}">
97
                 {% endif %}
98
            </span>
99
           </h3>
100

    
101
           <div>
102
               {% if appointment.type == 'free' %}
103
               <button class='newrdv' data-url="{% url 'nouveau-rdv' service=service date=date %}" data-hour="{{ appointment.begin_hour }}">Nouveau rendez-vous patient</button>
104
               <button class='newevent' data-url="{% url 'new-event' service=service date=date %}" data-hour="{{ appointment.begin_hour }}">Nouvel événement</button>
105
               {% endif %}
106
             {% if appointment.event_id %}
107
             <div class="tabs-worker-{{ worker_agenda.worker.id }} textedit">
108
                 <span></span>
109
                 <textarea>{{ appointment.description }}</textarea>
110
                 <button disabled="disabled" data-event-id="{{ appointment.event_id }}"></button>
111
             </div>
112
             {% endif %}
113
             {% if appointment.patient_record_id %}
114
             <a href="/{{ service }}/dossiers/{{ appointment.patient_record_id }}" target="_blank">Dossier patient</a> -
115
             <a href="#">Prochains rendez-vous</a> -
116
             <a href="#">Convoquer patient</a>
117
             {% endif %}
118
           </div>
119
           {% endfor %}
120
         </div>
121
       </div>
122
       {% endfor %}
123

    
124
       </div>
125

    
126
       </div>
127
     </td>
128
    </tr>
129
    </tbody>
130
   </table>
131
{% endblock %}
132

    
133
{% block dialogs %}
134
  <div id="rdv" style="display: none;">
135
 </div>
136
{% endblock %}
(5-5/8)