1
|
{% extends "calebasse/base.html" %}
|
2
|
|
3
|
{% load url from future %}
|
4
|
|
5
|
{% block extrascripts %}
|
6
|
{{ block.super }}
|
7
|
<script src="{{ STATIC_URL }}js/calebasse.datesel.js"></script>
|
8
|
<script>
|
9
|
$(function() {
|
10
|
$('.date').datepicker();
|
11
|
$('table#actes tr').click(function() {
|
12
|
|
13
|
$('#acte-dlg').dialog({title: 'Acte',
|
14
|
width: '500px',
|
15
|
buttons: [ { text: "Annuler",
|
16
|
click: function() { $(this).dialog("close"); } },
|
17
|
{ text: "Enregistrer",
|
18
|
click: function() { $(this).dialog("close"); } }
|
19
|
]}
|
20
|
);
|
21
|
|
22
|
});
|
23
|
$('#new-acte').click(function() {
|
24
|
$('#new-acte-dlg').dialog({title: 'Nouvel acte',
|
25
|
width: '550px',
|
26
|
buttons: [ { text: "Fermer",
|
27
|
click: function() { $(this).dialog("close"); } },
|
28
|
{ text: "Ajouter",
|
29
|
click: function() { $(this).dialog("close"); } }
|
30
|
]}
|
31
|
);
|
32
|
});
|
33
|
$('#search-form input[type="checkbox"]').on('change', function () {
|
34
|
$('#search-form').submit();
|
35
|
});
|
36
|
|
37
|
});
|
38
|
</script>
|
39
|
{% endblock %}
|
40
|
|
41
|
{% block header %}
|
42
|
{{ block.super }}
|
43
|
<span>Actes - {{ service_name }}</spam>
|
44
|
{% endblock %}
|
45
|
|
46
|
{% block appbar %}
|
47
|
<div id="appbar">
|
48
|
<h2>Saisie des actes</h2>
|
49
|
<a href="../..">Retourner à l'accueil</a>
|
50
|
<button class="dialog-button"
|
51
|
data-url="nouvel-acte/"
|
52
|
data-default-button="Ajouter"
|
53
|
>Ajouter un acte</button>
|
54
|
</div>
|
55
|
{% endblock %}
|
56
|
|
57
|
|
58
|
{% block content %}
|
59
|
<div id="sidebar">
|
60
|
<form method="post" id="search-form">
|
61
|
{% csrf_token %}
|
62
|
<div>
|
63
|
<h3>Rechercher dans les actes</h3>
|
64
|
<h4>Patient</h4>
|
65
|
{{ search_form.non_field_errors }}
|
66
|
<label>Nom: {{ search_form.last_name }}</label>
|
67
|
{{ search_form.last_name.errors }}
|
68
|
<label>Numéro de dossier: {{ search_form.patient_record_id }}</label>
|
69
|
{{ search_form.patient_record_id.errors }}
|
70
|
<label>Numéro de sécu: {{ search_form.social_security_number }}</label>
|
71
|
{{ search_form.social_security_number.errors }}
|
72
|
<button>Rechercher</button>
|
73
|
<h4>Intervenant</h4>
|
74
|
<label>Nom: {{ search_form.doctor_name }}</label>
|
75
|
{{ search_form.doctor_name.errors }}
|
76
|
<button>Rechercher</button>
|
77
|
</div>
|
78
|
<div id="filtre">
|
79
|
<h3>Filtrer les actes</h3>
|
80
|
{{ search_form.filters }}
|
81
|
</div>
|
82
|
</form>
|
83
|
</div>
|
84
|
|
85
|
<div class="content">
|
86
|
{% include 'calebasse/datesel.html' %}
|
87
|
<br/>
|
88
|
|
89
|
<table id="actes" class="main">
|
90
|
<thead>
|
91
|
<tr>
|
92
|
<th>Dossier</th>
|
93
|
<th>État</th>
|
94
|
<th>Type d'acte</th>
|
95
|
<th>Validation</th>
|
96
|
<th>Facturation</th>
|
97
|
<th>Intervenants</th>
|
98
|
<th>Heure</th>
|
99
|
<th>Durée</th>
|
100
|
</tr>
|
101
|
</thead>
|
102
|
<tbody>
|
103
|
{% for act in object_list %}
|
104
|
{% comment %}
|
105
|
FIXME: comment mettre la classe non-factu ?
|
106
|
<tr class="non-factu">
|
107
|
{% endcomment %}
|
108
|
<tr>
|
109
|
<td>
|
110
|
{{ act.patient.id }}
|
111
|
{{ act.patient.first_name }}
|
112
|
<span class="lastname">{{ act.patient.last_name }}</span>
|
113
|
</td>
|
114
|
<td>FIXME: c'est quoi état ?</td>
|
115
|
<td>({{ act.act_type.id }}) {{ act.act_type }}</td>
|
116
|
<td>{{ act.get_state }}</td>
|
117
|
<td>FIXME: facturation !!</td>
|
118
|
<td>
|
119
|
{% for doctor in act.doctors.all %}
|
120
|
({{ doctor.id }}) {{ doctor }}
|
121
|
{% if not forloop.last %}
|
122
|
<br/>
|
123
|
{% endif %}
|
124
|
{% endfor %}
|
125
|
</td>
|
126
|
<td>{{ act.parent_event.start_time|date:"H:i" }}</td>
|
127
|
<td>{{ act.duration }}</td>
|
128
|
</tr>
|
129
|
{% endfor %}
|
130
|
<!--
|
131
|
<tr>
|
132
|
<td>1234 Bob Léponge</td>
|
133
|
<td>Traitement</td>
|
134
|
<td>(11) Ortophonie</td>
|
135
|
<td>Validé</td>
|
136
|
<td>123-123456</td>
|
137
|
<td>(10) Peyrard</td>
|
138
|
<td>17:15</td>
|
139
|
<td>00:45</td>
|
140
|
</tr>
|
141
|
|
142
|
<tr class="non-factu">
|
143
|
<td>2345 Cindy Lop</td>
|
144
|
<td>Traitement</td>
|
145
|
<td>(29) Travail perso</td>
|
146
|
<td>Non facturable<br/>Validé</td>
|
147
|
<td></td>
|
148
|
<td>(62) Grangy<br/>(81) Blondiau</td>
|
149
|
<td>10:00</td>
|
150
|
<td>01:00</td>
|
151
|
</tr>
|
152
|
|
153
|
|
154
|
<tr class="non-factu">
|
155
|
<td>3456 Mark Spencer</td>
|
156
|
<td>Traitement</td>
|
157
|
<td>(29) Travail perso</td>
|
158
|
<td>Non facturable<br/>Absence non excusée</td>
|
159
|
<td></td>
|
160
|
<td>(62) Grangy<br/>(81) Blondiau</td>
|
161
|
<td>11:00</td>
|
162
|
<td>01:00</td>
|
163
|
</tr>
|
164
|
|
165
|
<tr>
|
166
|
<td>4567 John Doe</td>
|
167
|
<td>Diagnostic</td>
|
168
|
<td>(10) Entretien</td>
|
169
|
<td>Validé</td>
|
170
|
<td>124-en cours</td>
|
171
|
<td>(5) Roudon</td>
|
172
|
<td>14:15</td>
|
173
|
<td>00:45</td>
|
174
|
</tr>
|
175
|
|
176
|
<tr class="non-factu">
|
177
|
<td>5678 Philippe Maurice</td>
|
178
|
<td>Traitement</td>
|
179
|
<td>(16) Groupe langage</td>
|
180
|
<td>Validé</td>
|
181
|
<td>Acte perdu</td>
|
182
|
<td>(11) Douare</td>
|
183
|
<td>14:00</td>
|
184
|
<td>01:00</td>
|
185
|
</tr>
|
186
|
-->
|
187
|
</tbody>
|
188
|
</table>
|
189
|
</div>
|
190
|
{% endblock %}
|
191
|
|
192
|
{% block dialogs %}
|
193
|
|
194
|
<div id="acte-dlg" style="display: none;">
|
195
|
<p>1234 Bob Leponge (Traitement)</p>
|
196
|
<p><select><option>(11) Ortophonie</option></select></p>
|
197
|
<p>8 août 2012 - 17:15 - 45 minutes</p>
|
198
|
|
199
|
<table>
|
200
|
<tr><td width="50%">
|
201
|
<h4>Intervenants</h4>
|
202
|
<div id="intervenants">
|
203
|
<ul>
|
204
|
<li><input type="checkbox" value="Bob Léponge" checked="checked">Bob Léponge</input></li>
|
205
|
<li><input type="checkbox" value="Sandy Kilo" checked="checked">Sandy Kilo</input></li>
|
206
|
</ul>
|
207
|
<a href="#">Ajouter</a><br/>
|
208
|
<a href="#">Tout le monde</a>
|
209
|
</div>
|
210
|
</td>
|
211
|
|
212
|
<td width="50%">
|
213
|
|
214
|
<ul>
|
215
|
<li>Rendez-vous pris le 5 juillet 2012 à 10:36</li>
|
216
|
<li>Acte validé le 10 août 2012 à 9h10</li>
|
217
|
<li>En cours de facturation (123) <button class="flat">Acte perdu</button></li>
|
218
|
</ul>
|
219
|
</td>
|
220
|
</tr>
|
221
|
</table>
|
222
|
|
223
|
<br/>
|
224
|
<br/>
|
225
|
<textarea cols="50">Bla bla bla</textarea>
|
226
|
|
227
|
</div>
|
228
|
{% endblock %}
|