Project

General

Profile

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

calebasse / calebasse / agenda / templates / agenda / index.html @ 1f4ae3b3

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

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

    
14
{% block beforecontent %}
15
    <div id="extra-top-links">
16
     <a href="activite-du-service">Activité du service</a>
17
     |
18
     {% if 'validator' in role %}<a href="validation-des-actes">Validation des actes</a> |
19
     {% endif %}
20
     <a href="rendez-vous-periodiques">Rendez-vous périodiques</a>
21
     |
22
     <a href="agendas-therapeutes">Tous les agendas des intervenants</a>
23
    </div>
24

    
25
    <div id="users">
26
    <div id="filtre" class="search">
27
     <input type="text" class="focus"/>
28
    </div>
29
    <p id="filtre-workers">
30
     <input type="checkbox" id="show-everybody"><label for="show-everybody">Tout le monde</label></input>
31
    </p>
32
    <dl>
33
     {% for workers_type in workers_types %}
34
     <dt>{{ workers_type.type }}</dt>
35
     <dd><ul>
36
       {% for worker in workers_type.workers %}
37
       {% if worker|is_worker_in_service:service_name and worker|is_intervenant %}
38
       <li id="worker-{{worker.id}}" class="item in_service intervenant worker" data-target=".worker-{{worker.id}}.agenda">{{ worker.first_name }} <span class="lastname">{{ worker.last_name }}</span>{% if not worker.services.all %} (Ext){% endif %}<span class="icon-toggle"></span></li>
39
       {% elif worker|is_worker_in_service:service_name %}
40
       <li id="worker-{{worker.id}}" class="item in_service worker" data-target=".worker-{{worker.id}}.agenda">{{ worker.first_name }} <span class="lastname">{{ worker.last_name }}</span>{% if not worker.services.all %} (Ext){% endif %} <span class="icon-toggle"></span></li>
41
       {% elif worker|is_intervenant %}
42
       <li id="worker-{{worker.id}}" class="item intervenant worker" data-target=".worker-{{worker.id}}.agenda">{{ worker.first_name }} <span class="lastname">{{ worker.last_name }}</span>{% if not worker.services.all %} (Ext){% endif %} <span class="icon-toggle"></span></li>
43
       {% else %}
44
       <li id="selector-worker-{{worker.id}}" class="item worker" data-target=".worker-{{worker.id}}.agenda">{{ worker.first_name }} <span class="lastname">{{ worker.last_name }}</span>{% if not worker.services.all %} (Ext){% endif %} <span class="icon-toggle"></span></li>
45
       {% endif %}
46
       {% endfor %}
47
     </ul></dd>
48
     {% endfor %}
49
     {% for ressources_type in ressources_types %}
50
     <dt>{{ ressources_type.type }}</dt>
51
     <dd><ul>
52
       {% for ressource in ressources_type.ressources %}
53
       <li id="ressource-{{ressource.id}}" class="item ressource" data-target=".ressource-{{ressource.id}}.agenda" data-type="ressource">{{ ressource.name }} <span class="icon-toggle"></span></li>
54
       {% endfor %}
55
     </ul></dd>
56
     {% endfor %}
57
   </dl>
58

    
59
 </div>
60
{% endblock %}
61

    
62
{% block agenda-content %}
63
   <table>
64
    <tbody>
65
    <tr>
66
     <td id="dispos">
67
       <ul id="availability">
68
         <li id='time'>
69
           <ul>
70
             <li class="initials">&nbsp;</li>
71
             {% for start_time in disponibility_start_times %}
72
             <li class="hour-mark {% if start_time == 12 %}noon-start{% elif start_time == 13%}noon-end{% endif %}">
73
               {{ start_time|stringformat:"02d" }}
74
             </li>
75
             {% endfor %}
76
           </ul>
77
         </li>
78
       </ul>
79
     </td>
80

    
81
     <td id="agendas">
82
       <div id="tabs" class="agenda">
83
         <div id="close-all-agendas" style="display: none" title="Fermer tous les agendas"></div>
84
         <ul>
85
           {% for worker in workers %}
86
           <li style="display: none" class="worker-{{ worker.id }} agenda">
87
             <a id="worker-{{ worker.id }}" href="{% url "ajax-worker-tab" service date worker.id %}" class="tab">
88
               {{ worker.first_name }}
89
               <p class="lastname">{{ worker.last_name }}</p>
90
             </a>
91
             <a href="#" style="padding: 3px;cursor: auto;" class="close-tab" data-target="worker-{{ worker.id }}"><span class="ui-icon ui-icon-circle-close"></span></a>
92
           </li>
93
           {% endfor %}
94

    
95
           {% for ressource in ressources_types.0.ressources %}
96
           <li style="display: none" class="ressource-{{ ressource.id }} agenda">
97
             <a id="ressource-{{ ressource.id }}" href="{% url "ajax-ressource-tab" service date ressource.id %}" class="tab">
98
               {{ ressource }}
99
             </a>
100
             <a href="#" style="padding: 3px;cursor: auto;" class="close-tab" data-target="ressource-{{ ressource.id }}"><span class="ui-icon ui-icon-circle-close"></span></a>
101
           </li>
102
           {% endfor %}
103
         </ul>
104
       </div>
105
</td>
106
</tr>
107
</tbody>
108
</table>
109

    
110
{% endblock %}
111

    
112
{% block dialogs %}
113
 <div id="ajax-dlg" style="display: none;"></div>
114
{% endblock %}
(11-11/18)