Project

General

Profile

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

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

1
{% extends "agenda/base.html" %}
2
{% load url from future %}
3
{% load apptags %}
4
{% block extrastyles %}
5
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/agenda.css" />
6
{% endblock extrastyles %}
7

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

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

    
28
    <div id="users">
29
    <div id="filtre" class="search">
30
     <input type="text" class="focus"/>
31
    </div>
32
    <p id="filtre-workers">
33
     <input type="checkbox" id="show-everybody"><label for="show-everybody">Tout le monde</label></input>
34
    </p>
35
    <dl>
36
     {% for workers_type in workers_types %}
37
     <dt>{{ workers_type.type }}</dt>
38
     <dd><ul>
39
       {% for worker in workers_type.workers %}
40
       {% if worker|is_worker_in_service:service_name and worker|is_intervenant %}
41
       <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>
42
       {% elif worker|is_worker_in_service:service_name %}
43
       <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>
44
       {% elif worker|is_intervenant %}
45
       <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>
46
       {% else %}
47
       <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>
48
       {% endif %}
49
       {% endfor %}
50
     </ul></dd>
51
     {% endfor %}
52
     {% for ressources_type in ressources_types %}
53
     <dt>{{ ressources_type.type }}</dt>
54
     <dd><ul>
55
       {% for ressource in ressources_type.ressources %}
56
       <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>
57
       {% endfor %}
58
     </ul></dd>
59
     {% endfor %}
60
   </dl>
61

    
62
 </div>
63
{% endblock %}
64

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

    
85
     <td id="agendas">
86
       <div id="tabs" class="agenda">
87
         <div id="close-all-agendas" style="display: none" title="Fermer tous les agendas"></div>
88
         <ul>
89
           {% for worker in workers %}
90
           <li style="display: none" class="worker-{{ worker.id }} agenda">
91
             <a id="worker-{{ worker.id }}" href="{% url "ajax-worker-tab" service date worker.id %}" class="tab">
92
               {{ worker.first_name }}
93
               <p class="lastname">{{ worker.last_name }}</p>
94
             </a>
95
             <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>
96
           </li>
97
           {% endfor %}
98

    
99
           {% for ressource in ressources_types.0.ressources %}
100
           <li style="display: none" class="ressource-{{ ressource.id }} agenda">
101
             <a id="ressource-{{ ressource.id }}" href="{% url "ajax-ressource-tab" service date ressource.id %}" class="tab">
102
               {{ ressource }}
103
             </a>
104
             <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>
105
           </li>
106
           {% endfor %}
107
         </ul>
108
       </div>
109
</td>
110
</tr>
111
</tbody>
112
</table>
113

    
114
{% endblock %}
115

    
116
{% block dialogs %}
117
 <div id="ajax-dlg" style="display: none;"></div>
118
{% endblock %}
(11-11/19)