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
|
—
|
19
|
<a href="agendas-therapeutes">Tous les agendas thérapeutes</a>
|
20
|
</div>
|
21
|
|
22
|
|
23
|
<div id="users">
|
24
|
<div id="filtre">
|
25
|
<input type="text"/>
|
26
|
</div>
|
27
|
<dl>
|
28
|
{% for workers_type in workers_types %}
|
29
|
<dt>{{ workers_type.type }}</dt>
|
30
|
<dd><ul>
|
31
|
{% for worker in workers_type.workers %}
|
32
|
<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>
|
33
|
{% endfor %}
|
34
|
</ul></dd>
|
35
|
{% endfor %}
|
36
|
</dl>
|
37
|
</div>
|
38
|
{% endblock %}
|
39
|
|
40
|
{% block agenda-content %}
|
41
|
<table>
|
42
|
<tbody>
|
43
|
<tr>
|
44
|
<td id="dispos">
|
45
|
Disponibilités
|
46
|
<table>
|
47
|
{% for start_time, quaters in disponibility.items %}
|
48
|
<tr class="hour-mark">
|
49
|
<td rowspan="4">{{ start_time }}:00</td>
|
50
|
{% for quater in quaters %}
|
51
|
{% if forloop.counter != 1 %}
|
52
|
<tr>
|
53
|
{% endif %}
|
54
|
{% for value in quater %}
|
55
|
<td class="worker-{{ value.id }} agenda {{ value.dispo }}" style="display: none; "></td>
|
56
|
{% endfor %}
|
57
|
{% endfor %}
|
58
|
</tr>
|
59
|
{% endfor %}
|
60
|
</table>
|
61
|
</td>
|
62
|
|
63
|
<td id="agendas">
|
64
|
<div id="tabs">
|
65
|
<ul>
|
66
|
{% for worker_agenda in workers_agenda %}
|
67
|
<li style="display: none" class="worker-{{ worker_agenda.worker.id }} agenda">
|
68
|
<a id="link-tab-worker-{{ worker_agenda.worker.id }}" href="#tabs-worker-{{ worker_agenda.worker.id }}" class="tab" data-id="{{ worker_agenda.worker.id }}">{{ worker_agenda.worker.display_name }}</a>
|
69
|
<a href="#" style="padding: 3px;cursor: auto;" class="close-tab" data-target="selector-worker-{{ worker_agenda.worker.id }}"><span class="ui-icon ui-icon-circle-close"></span></a>
|
70
|
</li>
|
71
|
{% endfor %}
|
72
|
</ul>
|
73
|
{% for worker_agenda in workers_agenda %}
|
74
|
<div id="tabs-worker-{{ worker_agenda.worker.id }}" class="tabs agenda worker-{{ worker_agenda.worker.id }}" style="display: none;">
|
75
|
<a class="print" href="#">Imprimer</a>
|
76
|
<div>
|
77
|
{% for appointment in worker_agenda.appointments %}
|
78
|
<h3 class="{{ appointment.type }} appointment">
|
79
|
<span class="hour">{{ appointment.begin_hour }}</span>
|
80
|
{% if appointment.event_type %} — {{ appointment.event_type }} {% endif %}
|
81
|
{% if appointment.title %} — {{ appointment.title }} {% endif %}
|
82
|
{% if appointment.length %} — {{ appointment.length }}m {% endif %}
|
83
|
{% if appointment.workers_initial %} —{{ appointment.workers_initial }} {% endif %}
|
84
|
{% if appointment.act_type %} — {{ appointment.act_type }} {% endif %}
|
85
|
{% if appointment.room %} — {{ appointment.room }} {% endif %}
|
86
|
<span class="right">
|
87
|
{% for service_name in appointment.other_services_names %}
|
88
|
<span class="box {{ service_name }}" title="{{ service_name }}"></span>
|
89
|
{% endfor %}
|
90
|
{% if appointment.convocation_sent %}
|
91
|
<img title="Une convocation a été envoyée" src="{{ STATIC_URL }}images/emblem-mail.png">
|
92
|
{% endif %}
|
93
|
{% if appointment.description %}
|
94
|
<img title="Un commentaire existe" src="{{ STATIC_URL }}images/emblem-documents.png">
|
95
|
{% endif %}
|
96
|
{% if appointment.event_id %}
|
97
|
{% if appointment.patient_record_id %}
|
98
|
<img title="Editer un rendez-vous" class="edit-appointment" src="{{ STATIC_URL }}images/accessories-text-editor.png" data-occurrence-id="{{ appointment.occurrence_id }}">
|
99
|
{% else %}
|
100
|
<img title="Editer un événement" class="edit-event" src="{{ STATIC_URL }}images/accessories-text-editor.png" data-occurrence-id="{{ appointment.occurrence_id }}">
|
101
|
{% endif %}
|
102
|
<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 }}">
|
103
|
{% endif %}
|
104
|
</span>
|
105
|
</h3>
|
106
|
|
107
|
<div>
|
108
|
{% if appointment.type == 'free' %}
|
109
|
<button class='newrdv' data-url="{% url 'nouveau-rdv' service=service date=date %}" data-hour="{{ appointment.begin_hour }}">Nouveau rendez-vous patient</button>
|
110
|
<button class='newevent' data-url="{% url 'new-event' service=service date=date %}" data-hour="{{ appointment.begin_hour }}">Nouvel événement</button>
|
111
|
{% endif %}
|
112
|
{% if appointment.event_id %}
|
113
|
<div class="tabs-worker-{{ worker_agenda.worker.id }} textedit">
|
114
|
<span></span>
|
115
|
<textarea>{{ appointment.description }}</textarea>
|
116
|
<button disabled="disabled" data-event-id="{{ appointment.event_id }}">✔</button>
|
117
|
</div>
|
118
|
{% endif %}
|
119
|
{% if appointment.patient_record_id %}
|
120
|
<a href="/{{ service }}/dossiers/{{ appointment.patient_record_id }}/view" target="_blank">Dossier patient</a> -
|
121
|
<a href="#">Prochains rendez-vous</a> -
|
122
|
<a href="#">Convoquer patient</a>
|
123
|
{% endif %}
|
124
|
</div>
|
125
|
{% endfor %}
|
126
|
</div>
|
127
|
</div>
|
128
|
{% endfor %}
|
129
|
|
130
|
</div>
|
131
|
|
132
|
</div>
|
133
|
</td>
|
134
|
</tr>
|
135
|
</tbody>
|
136
|
</table>
|
137
|
|
138
|
{% endblock %}
|
139
|
|
140
|
{% block dialogs %}
|
141
|
<div id="rdv" style="display: none;">
|
142
|
</div>
|
143
|
{% endblock %}
|