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
|
<a href="validation-des-actes">Validation des actes</a>
|
17
|
—
|
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"/>
|
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="person-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> <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="person-item in_service" data-worker-id="{{worker.id}}" data-target=".worker-{{worker.id}}.agenda">{{ worker.first_name }} <span class="lastname">{{ worker.last_name }}</span> <span class="toggle" title="cliquer pour déselectionner">(-)</span></li>
|
40
|
{% elif worker|is_intervenant %}
|
41
|
<li id="selector-worker-{{worker.id}}" class="person-item intervenant" data-worker-id="{{worker.id}}" data-target=".worker-{{worker.id}}.agenda">{{ worker.first_name }} <span class="lastname">{{ worker.last_name }}</span> <span class="toggle" title="cliquer pour déselectionner">(-)</span></li>
|
42
|
{% else %}
|
43
|
<li id="selector-worker-{{worker.id}}" class="person-item" data-worker-id="{{worker.id}}" data-target=".worker-{{worker.id}}.agenda">{{ worker.first_name }} <span class="lastname">{{ worker.last_name }}</span> <span class="toggle" title="cliquer pour déselectionner">(-)</span></li>
|
44
|
{% endif %}
|
45
|
{% endfor %}
|
46
|
</ul></dd>
|
47
|
{% endfor %}
|
48
|
</dl>
|
49
|
<a href="ressources">Agenda des salles</a>
|
50
|
</div>
|
51
|
{% endblock %}
|
52
|
|
53
|
{% block agenda-content %}
|
54
|
<table>
|
55
|
<tbody>
|
56
|
<tr>
|
57
|
<td id="dispos">
|
58
|
Disponibilités
|
59
|
<table>
|
60
|
{% for start_time in disponibility_start_times %}
|
61
|
<tr class="hour-mark">
|
62
|
<td rowspan="4">{{ start_time }}:00</td>
|
63
|
</tr>
|
64
|
<tr></tr>
|
65
|
<tr></tr>
|
66
|
<tr></tr>
|
67
|
{% endfor %}
|
68
|
</table>
|
69
|
</td>
|
70
|
|
71
|
<td id="agendas">
|
72
|
<div id="tabs">
|
73
|
<ul>
|
74
|
{% for worker in workers %}
|
75
|
<li style="display: none" class="worker-{{ worker.id }} agenda">
|
76
|
<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>
|
77
|
<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>
|
78
|
</li>
|
79
|
{% endfor %}
|
80
|
</ul>
|
81
|
{% for worker in workers %}
|
82
|
<div id="tabs-worker-{{ worker.id }}" class="tabs agenda worker-{{ worker.id }}" style="display: none;">
|
83
|
<div class="worker-tab-content-placeholder">
|
84
|
<!-- placeholder -->
|
85
|
</div>
|
86
|
</div>
|
87
|
{% endfor %}
|
88
|
|
89
|
</div>
|
90
|
|
91
|
</div>
|
92
|
</td>
|
93
|
</tr>
|
94
|
</tbody>
|
95
|
</table>
|
96
|
|
97
|
{% endblock %}
|
98
|
|
99
|
{% block dialogs %}
|
100
|
<div id="rdv" style="display: none;">
|
101
|
</div>
|
102
|
{% endblock %}
|