Project

General

Profile

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

calebasse / calebasse / agenda / templates / agenda / index.html @ 99ea2836

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
    <button class="newevent" data-hour="" data-url="{% url 'new-event' service=service date=date %}">Nouvel événement</button>
9
    <button class="newrdv" data-hour="" data-url="{% url 'nouveau-rdv' service=service date=date %}">Nouveau rendez-vous patient</button>
10
{% endblock %}
11

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

    
23

    
24
    <div id="users">
25
    <div id="filtre">
26
     <input type="text" class="focus"/>
27
    </div>
28
    <p id="filtre-workers">
29
     <input type="checkbox" id="show-everybody"><label for="show-everybody">Tout le monde</label></input>
30
    </p>
31
    <dl>
32
     {% for workers_type in workers_types %}
33
     <dt>{{ workers_type.type }}</dt>
34
     <dd><ul>
35
       {% for worker in workers_type.workers %}
36
       {% if worker|is_worker_in_service:service_name and worker|is_intervenant %}
37
       <li id="selector-worker-{{worker.id}}" class="worker-item in_service intervenant" data-worker-id="{{worker.id}}" 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="toggle" title="cliquer pour déselectionner">(-)</span></li>
38
       {% elif worker|is_worker_in_service:service_name %}
39
       <li id="selector-worker-{{worker.id}}" class="worker-item in_service" data-worker-id="{{worker.id}}" 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="toggle" title="cliquer pour déselectionner">(-)</span></li>
40
       {% elif worker|is_intervenant %}
41
       <li id="selector-worker-{{worker.id}}" class="worker-item intervenant" data-worker-id="{{worker.id}}" 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="toggle" title="cliquer pour déselectionner">(-)</span></li>
42
       {% else %}
43
       <li id="selector-worker-{{worker.id}}" class="worker-item" data-worker-id="{{worker.id}}" 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="toggle" title="cliquer pour déselectionner">(-)</span></li>
44
       {% endif %}
45
       {% endfor %}
46
     </ul></dd>
47
     {% endfor %}
48
   </dl>
49
   <a href="{% url 'ressources' service date %}">Agenda des salles</a>
50
 </div>
51
{% endblock %}
52

    
53
{% block agenda-content %}
54
   <table>
55
    <tbody>
56
    <tr>
57
     <td id="dispos">
58
       <button id="close-all-worker-agendas" style="display: none">Fermer tous les agendas</button>
59
      Disponibilités
60
      <table>
61
        <tr class="initials"><td></td></tr>
62
        {% for start_time in disponibility_start_times %}
63
          <tr class="hour-mark">
64
              <td rowspan="4">{{ start_time }}:00</td>
65
          </tr>
66
          <tr></tr>
67
          <tr></tr>
68
          <tr></tr>
69
        {% endfor %}
70
      </table>
71
     </td>
72

    
73
     <td id="agendas">
74
       <div id="tabs">
75
       <ul>
76
        {% for worker in workers %}
77
        <li style="display: none" class="worker-{{ worker.id }} agenda">
78
        <a id="link-tab-worker-{{ worker.id }}" href="#tabs-worker-{{ worker.id }}" class="tab" data-id="{{ worker.id }}">{{ worker.first_name }} <span class="lastname">{{ worker.last_name }}</span></a>
79
        <a href="#" style="padding: 3px;cursor: auto;" class="close-tab" data-target="selector-worker-{{ worker.id }}"><span class="ui-icon ui-icon-circle-close"></span></a>
80
        </li>
81
        {% endfor %}
82
       </ul>
83
       {% for worker in workers %}
84
       <div id="tabs-worker-{{ worker.id }}" class="tabs agenda worker-{{ worker.id }}" style="display: none;">
85
         <div class="worker-tab-content-placeholder">
86
           <!-- placeholder -->
87
         </div>
88
       </div>
89
       {% endfor %}
90

    
91
       </div>
92

    
93
       </div>
94
     </td>
95
    </tr>
96
    </tbody>
97
   </table>
98

    
99
{% endblock %}
100

    
101
{% block dialogs %}
102
  <div id="rdv" style="display: none;">
103
 </div>
104
 <div id="ajax-dlg" style="display: none;"></div>
105
{% endblock %}
(10-10/18)