Project

General

Profile

« Previous | Next » 

Revision 3087a41c

Added by Jérôme Schneider over 12 years ago

dossiers: change templates name and fix views and forms

View differences:

calebasse/dossiers/forms.py
2 2

  
3 3
from models import PatientRecord
4 4

  
5
class CreateDossierForm(ModelForm):
5
class CreatePatientRecordForm(ModelForm):
6 6
    class Meta:
7 7
        model = PatientRecord
8 8

  
9 9

  
10
class EditDossierForm(ModelForm):
10
class EditPatientRecordForm(ModelForm):
11 11
    class Meta:
12 12
        model = PatientRecord
calebasse/dossiers/templates/dossiers/patient_record_confirm_delete.html
1
{% extends "calebasse/popup.html" %}
calebasse/dossiers/templates/dossiers/patient_record_edit.html
1
{% extends "calebasse/base.html" %}
2
<!DOCTYPE html>
3
<html lang="fr">
4
  <head>
5
    <meta charset="utf-8"/>
6
    <title>APS42 — Dossier - 12346 - Bouclier Guillaume</title>
7
    <link rel="stylesheet" type="text/css" media="all" href="css/style.css"/>
8
    <link rel="stylesheet" type="text/css" media="all" href="css/smoothness/jquery-ui-1.8.21.custom.css"/>
9

  
10
    <script src="js/jquery-1.7.2.min.js"></script>
11
    <script src="js/jquery-ui-1.8.21.custom.min.js"></script>
12
    <script src="development-bundle/ui/i18n/jquery.ui.datepicker-fr.js"></script>
13
    <script>
14
	$(function() {
15
		$('#tabs').tabs();
16
		$('#clore-dossier').click(function() {
17
			$('#dossier-change').dialog({title: 'Changement - Clôture',
18
				width: '500px',
19
				  buttons: [ { text: "Annuler",
20
					       click: function() { $(this).dialog("close"); } },
21
					     { text: "Valider",
22
					       click: function() { $(this).dialog("close"); } }]}
23
			);
24
			});
25
		$('#reaccueillir-dossier').click(function() {
26
			$('#dossier-change').dialog({title: 'Changement - Réaccueil',
27
				width: '500px',
28
				  buttons: [ { text: "Annuler",
29
					       click: function() { $(this).dialog("close"); } },
30
					     { text: "Valider",
31
					       click: function() { $(this).dialog("close"); } }]}
32
			);
33
			});
34
		$('#historique-dossier').click(function() {
35
			$('#dossier-histo-dlg').dialog({title: 'Historique dossier',
36
				width: '500px',
37
				  buttons: [ { text: "Fermer",
38
					       click: function() { $(this).dialog("close"); } }]}
39
			);
40
			});
41
		$('#new-address-btn').click(function() {
42
			$('#new-address-dlg').dialog({title: 'Nouvelle adresse',
43
				width: '500px',
44
				  buttons: [ { text: "Annuler",
45
					       click: function() { $(this).dialog("close"); } },
46
					     { text: "Valider",
47
					       click: function() { $(this).dialog("close"); } }]}
48
			);
49
			});
50

  
51
		$('#add-prise-en-charge-btn').click(function() {
52
			$('#add-prise-en-charge-dlg').dialog({title: 'Prise en charge',
53
				width: '300px',
54
				  buttons: [ { text: "Annuler",
55
					       click: function() { $(this).dialog("close"); } },
56
					     { text: "Valider",
57
					       click: function() { $(this).dialog("close"); } }]}
58
			);
59
			});
60

  
61
		$('#add-prolongation-btn').click(function() {
62
			$('#add-prolongation-dlg').dialog({title: 'Prolongation',
63
				width: '300px',
64
				  buttons: [ { text: "Annuler",
65
					       click: function() { $(this).dialog("close"); } },
66
					     { text: "Valider",
67
					       click: function() { $(this).dialog("close"); } }]}
68
			);
69
			});
70

  
71
                $('button.blind').next().hide();
72
                $('button.blind').click(function() {
73
                        $(this).next().toggle('blind');
74
                });
75
	});
76
	</script>
77
  </head>
78
  <body>
79
  <div id="wrap-large">
80
    <div id="header">
81
      <h1><a href="accueil.html">APS 42</a></h1>
82
      <span>Dossiers - CMPP</span>
83
    </div>
84
    <div id="splash" class="cmpp">
85
      <div id="user-links">
86
        <a href="connexion.html">Déconnexion</a>
87
      </div>
88
    </div>
89
    <div id="content">
90

  
91
    <div id="appbar">
92
    <h2>Bouclier Guillaume - Dossier 56789</h2>
93
    <a href="dossiers.html">Retourner aux dossiers</a>
94
    <button>Supprimer</button>
95
    </div>
96

  
97
    <div id="tabs">
98
    <ul>
99
     <li><a href="#tabs-1">Général</a></li>
100
     <li><a href="#tabs-2">Fiche administrative</a></li>
101
     <li><a href="#tabs-3">Adresses / contacts</a></li>
102
     <li><a href="#tabs-4">Prise en charge</a></li>
103
     <!--<li><a href="#tabs-5">Liste des actes</a>-->
104
     <li><a href="#tabs-6">Prochains rendez-vous</a>
105
     <li><a href="#tabs-7">Socialisation</a>
106
     <li><a href="#tabs-8">Données à caractère médical</a>
107
    </ul>
108
    <div id="tabs-1"> <!-- Général -->
109
     <div class="left">
110
     <ul>
111
      <li><label>N° dossier papier :</label> 12345 <button>✍</button></li>
112
      <li><label>N° dossier informatique :</label> 67890</li>
113
      <li><label>Nom :</label> Bouclier</li>
114
      <li><label>Prénom :</label> Guillaume</li>
115
      <li><label>Date de naissance :</label> 1/1/2005</li>
116
      <li><label>Lieux de vie :</label>
117
        <ul>
118
          <li>Adresse A - Téléphone A</li>
119
          <li>Adresse B - Téléphone B</li>
120
        </ul></li>
121
      <li><label>Date d'inscription :</label> 01/06/2012</li>
122
      <li><label>Lieu de socialisation :</label> École Truc</li>
123
      <li><label>Commentaire :</label><br/><textarea cols="50" rows="5"></textarea> <button>Mettre à jour</button></li>
124
     </ul>
125
     </div>
126
     <div class="right">
127
     <ul>
128
      <li><label>Dernier acte :</label> 28/06/2012 - T - absence excusée</li>
129
      <li><label>Prochain rendez-vous :</label> 18/08/2012 - Roudon - mini synthèse.</li>
130
     </ul>
131
     <div class="etat">
132
       <h4>État du dossier :  en diagnostic</h4>
133
       <p>depuis le 20/05/2012</p>
134
       <p><label>Commentaire :</label> bla bla bla bla</p>
135
       <button id="clore-dossier">Clore</button>
136
       <button id="reaccueillir-dossier">Ré-accueillir</button>
137
       <button id="historique-dossier">Historique</button><br/>
138
       <hr/>
139
       3/6 diagnostics
140
     </div>
141

  
142
     <div class="notifs">
143
       <h4>Notifications</h4>
144
       <ul>
145
        <li>Dossier en pause facturation <button>Sortir</button></li>
146
       </ul>
147
     </div>
148

  
149
     </div>
150
     <br style="clear:both"/>
151
    </div>
152

  
153
    <div id="tabs-2"> <!-- Fiche administrative -->
154
     <div class="frame">
155
     <h3>État civil</h3>
156
     <button class="save">✔</button>
157
     <p><label>Nom :</label> <input value="Bouclier"/>
158
     <label>Prénom(s) :</label> <input value="Guillaume"/></p>
159
     <p><label>Date de naissance :</label> <input value="1/1/2005"/>
160
     <label>Genre :</label> <input value="M"/>
161
     <label>Nationalité :</label> <input value="française"/></p>
162
     </div>
163

  
164
     <div class="frame">
165
     <h3>Physiologie</h3>
166
     <button class="save">✔</button>
167
     <p><label>Taille (cm) :</label> <input value="176"/>
168
        <label>Poids (kg) :</label> <input value="68"/>
169
        <label>Terme en semaines :</label> <input/></p>
170
     </div>
171

  
172
     <div class="frame">
173
     <h3>Inscription</h3>
174
     <button class="save">✔</button>
175
     <p>
176
      <label>Motif (analysé) :</label> <select><option>Indéfini</option></select> <button>+</button>
177
      <label>Motif (famille) :</label> <select><option>Indéfini</option></select> <button>+</button>
178
      <label>Conseilleur :</label> <select><option>Indéfini</option></select> <button>+</button>
179
     </p>
180

  
181
     </div>
182

  
183
     <div class="frame">
184
     <h3>Famille</h3>
185
     <button class="save">✔</button>
186
     <p><label>Place dans la fratrie :</label> <input size="4"/>
187
        <label>Nombre d'enfants dans la fratrie :</label> <input size="4"/>
188
        <label>Rang (gémellité) :</label> <input size="4"/>
189
     </p>
190
     <p>
191
      <label>Autorité parentale :</label> <select><option>Indéfini</option></select> <button>+</button>
192
      <label>Situation familiale :</label> <select><option>Indéfini</option></select> <button>+</button>
193
      <label>Garde parentale :</label> <select><option>Indéfini</option></select> <button>+</button>
194
     </p>
195

  
196
     </div>
197

  
198
     <div class="frame">
199
     <h3>Transport</h3>
200
     <button class="save">✔</button>
201
     <p>
202
      <label>Type de transport :</label> <select><option>Indéfini</option></select> <button>+</button>
203
      <label>Compagnie de transport :</label> <select><option>Indéfini</option></select> <button>+</button>
204
     </p>
205
     <table>
206
      <tr><td><button>Attestation</button></td> <td><button>Prescription</td></tr>
207
      <tr><td>Dernière attestation le 25/07/2012 <button>Historique</button></td>
208
          <td>Dernière prescription le 25/07/2012 <button>Historique</button></td></tr>
209
     </table>
210
     </div>
211

  
212
     <div class="frame">
213
     <h3>Suivi du patient</h3>
214
     <button class="save">✔</button>
215
     <p>
216
      <label>Coordinateur I :</label> <select><option>Indéfini</option></select> <button>+</button>
217
      <label>Coordinateur II :</label> <select><option>Indéfini</option></select> <button>+</button>
218
      <label>Coordinateur III :</label> <select><option>Indéfini</option></select> <button>+</button>
219
     </p>
220
     <p>
221
      <label>Médecin extérieur :</label> <select><option>Indéfini</option></select> <button>+</button>
222
      <label>Intervenant extérieur :</label> <select><option>Indéfini</option></select> <button>+</button>
223
     </p>
224
     </div>
225

  
226
    </div>
227

  
228
    <div id="tabs-3"> <!-- Adresses / Contacts -->
229
      <button id="new-address-btn">Nouvelle adresse</button> <button>Nouveau contact</button>
230
      <div class="frame">
231
       <h3>16 rue du Clocher</h3>
232
       <div class="buttons"><button>➖</button> <button>✍</button></div>
233
       <div class="right">
234
       <input type="checkbox" checked>Lieu de vie</input>
235
       </div>
236
       <p>13004 Marseille</p>
237
       <p>04 91 12 34 56</p>
238
       <div class="contact">
239
        <h4>Mme Marie Carmarie</h4>
240
        <div class="right">
241
         <input type="radio" name="radio-assure" checked="checked">Assuré</input>
242
         <button>➖</button> <button>✍</button>
243
        </div>
244
        <p>2 70 12 34 567 890 12</p>
245
        <p>06 12 34 56 78</p>
246
       </div>
247
       <div class="contact patient">
248
        <h4>M. Guillaume Bouclier (PATIENT)</h4>
249
        <div class="right">
250
         <input type="radio" name="radio-assure" >Assuré</input>
251
         <button>➖</button> <button>✍</button>
252
        </div>
253
        <p>1 04 12 34 567 890 12</p>
254
       </div>
255
      </div>
256

  
257
      <div class="frame">
258
       <h3>2 rue du Château</h3>
259
       <div class="buttons"><button>➖</button> <button>✍</button></div>
260
       <div class="right">
261
       <input type="checkbox">Lieu de vie</input>
262
       </div>
263
       <p>42000 Saint-Etienne</p>
264
       <p>04 77 12 34 56</p>
265
       <div class="contact">
266
        <h4>M. John Leponge</h4>
267
        <div class="right">
268
         <input type="radio" name="radio-assure">Assuré</input>
269
         <button>➖</button> <button>✍</button>
270
        </div>
271
        <p>1 70 12 34 567 890 12</p>
272
       </div>
273
      </div>
274

  
275
    </div>
276

  
277
    <div id="tabs-4"> <!-- Prise en charge -->
278
      <div id="patient-diag">
279
      <div class="frame">
280
       <h3>En diagnostic depuis le 11 juin 2012</h3>
281
       <ul>
282
       <li><input size="4" value="6"/> actes prévus</li>
283
       <li><strong>3</strong> actes réalisés dont <strong>2</strong> facturés <button class="blind">détails</button>
284
         <ul>
285
          <li>Facturation <strong>28</strong> (assuré: Sophie Fonfec) - <strong>2</strong> actes
286
           <ul>
287
            <li>Accueil le 11 juin 2012 - 9h00 - 45 minutes - Bob Leponge</li>
288
            <li>Dialogue le 12 juin 2012 - 10h00 - 30 minutes - Bob Leponge</li>
289
           </ul></li>
290
          <li>Non facturé - <strong>1 acte</strong>
291
           <ul>
292
            <li>Dialogue le 13 juin 2012 - 11h00 - 45 minutes - Sandy Kilo</li>
293
           </ul></li>
294
         </ul>
295
         </li>
296
       </ul>
297
      </div>
298
      </div>
299

  
300
      <div id="patient-traitement" style="display: none;">
301
       <div class="frame">
302
       <h3>En diagnostic depuis le 6 mars 2012</h3>
303
       <ul>
304
       <li><strong>6</strong> actes réalisés et facturés <button class="blind">détails</button>
305
         <ul>
306
          <li>Facturation <strong>28</strong> (assuré: Sophie Fonfec) - <strong>6</strong> actes
307
           <ul>
308
            <li>...</li>
309
           </ul></li>
310
         </ul>
311
         </li>
312
       </ul>
313
       </div>
314

  
315
       <div class="frame">
316
        <h3>En traitement depuis le 11 juin 2012</h3>
317
        <ul>
318
         <li><strong>4</strong> actes réalisés <button class="blind">détails</button>
319
          <ul><li>...</li></ul>
320
          </li>
321
         <li>Pas de prise en charge - <button id="add-prise-en-charge-btn">Ajouter une prise en charge</button></li>
322
        </ul>
323
       </div>
324

  
325
      </div>
326

  
327
      <div id="patient-traitement-charge" style="display: none;">
328

  
329
       <div class="frame">
330
       <h3>En diagnostic depuis le 2 avril 2008</h3>
331
       <ul>
332
       <li><strong>3</strong> actes réalisés et facturés <button class="blind">détails</button>
333
         <ul>
334
          <li>Facturation <strong>28</strong> (assuré: Sophie Fonfec) - <strong>3</strong> actes
335
           <ul>
336
            <li>...</li>
337
           </ul></li>
338
         </ul>
339
         </li>
340
       </ul>
341
       </div>
342

  
343
       <div class="frame">
344
       <h3>En diagnostic depuis le 5 octobre 2010</h3>
345
       <ul>
346
       <li><strong>6</strong> actes réalisés et facturés <button class="blind">détails</button>
347
         <ul>
348
          <li>Facturation <strong>28</strong> (assuré: Sophie Fonfec) - <strong>6</strong> actes
349
           <ul>
350
            <li>...</li>
351
           </ul></li>
352
         </ul>
353
         </li>
354
       </ul>
355
       </div>
356

  
357
       <div class="frame">
358
        <h3>En traitement depuis le 12 décembre 2010</h3>
359
        <ul>
360
         <li>Prise en charge depuis le 12 décembre 2010
361
          <ul>
362
           <li><strong>30</strong> actes réalisés et facturés <button class="blind">détails</button>
363
            <ul><li>...</li></ul></li>
364
           <li><strong>10</strong> actes réalisés et facturés en prolongation <button class="blind">détails</button>
365
            <ul><li>...</li></ul></li>
366
           <li><strong>6</strong> actes réalisés et non pris en charge <button class="blind">détails</button>
367
            <ul><li>...</li></ul></li>
368
          </ul>
369
         </li>
370
         <li>Prise en charge depuis le 15 décembre 2011
371
          <ul>
372
           <li><strong>30</strong> actes réalisés et facturés <button class="blind">détails</button>
373
            <ul><li>...</li></ul></li>
374
           <li><strong>6</strong> actes réalisés non facturés <button class="blind">détails</button>
375
            <ul><li>...</li></ul></li>
376
           <li><button id="add-prolongation-btn">Ajouter une prolongation</button></li>
377
          </ul>
378
         </li>
379
        </ul>
380
       </div>
381

  
382

  
383
      </div>
384

  
385
      <div id="overlay">
386
      <p>
387
       Exemples pour cet onglet :
388
        <a href="#" onclick="$('#patient-diag').show(); $('#patient-traitement').hide(); $('#patient-traitement-charge').hide();">Patient en diagnostic</a> -
389
        <a href="#" onclick="$('#patient-diag').hide(); $('#patient-traitement').show(); $('#patient-traitement-charge').hide();">Patient en traitement</a> -
390
        <a href="#" onclick="$('#patient-diag').hide(); $('#patient-traitement').hide(); $('#patient-traitement-charge').show();">Patient en traitement avec prise en charge</a>
391
      </p>
392
      </div>
393

  
394
    </div>
395

  
396
    <!--
397
    <div id="tabs-5">
398
    </div>
399
    -->
400

  
401
    <div id="tabs-6">
402
    </div>
403

  
404
    <div id="tabs-7">
405
    </div>
406

  
407
    <div id="tabs-8">
408
    </div>
409
    </div>
410

  
411
    <div id="footer">
412
413
    </div>
414
  </div>
415

  
416
  <div id="dossier-change" style="display: none;">
417
   <form>
418
   <p>
419
   <label for="id_date">Date :</label>
420
   <input id="id_date" class="date" name="date" value="5/7/2012"/>
421
   </p>
422
   <p>
423
    <label for="id_comment">Commentaire :</label>
424
    <textarea id="id_comment" style="width: 90%;"></textarea>
425
   </p>
426
   </form>
427
  </div>
428

  
429
  <div id="dossier-histo-dlg" style="display: none;">
430
   <dl>
431
    <dt><b>20/05/2012</b> <small>(date info: 22/05/2012)</small></dt>
432
    <dd>
433
     <p><b>en diagnostic</b>; <label>commentaire:</label> bla bla bla bla</p>
434
     <p>changement manuel (par M. Tom)</p>
435
    </dd>
436
    <dt><b>10/05/2012</b></dt>
437
    <dd>
438
     <p><b>accueil</b>; <label>commentaire:</label> bla bla bla bla</p>
439
     <p>changement manuel (par M. Tom)</p>
440
    </dd>
441
   </dl>
442
  </div>
443

  
444
  <div id="new-address-dlg" style="display: none;">
445
   <form>
446
   <table>
447
   <tr>
448
   <td>
449
   <label for="id_numero">Numéro :</label><br/>
450
   <input id="id_numero" class="numero" name="numero" size="10"/>
451
   </td>
452
   <td>
453
   <label for="id_rue">Rue :</label><br/>
454
   <input id="id_rue" class="rue" name="rue" size="35"/>
455
   </td>
456
   </tr>
457
   <tr>
458
   <td>
459
   <label for="id_cp">Code postal :</label><br/>
460
   <input id="id_cp" class="cp" name="cp" size="10"/>
461
   </td>
462
   <td>
463
   <label for="id_ville">Ville :</label><br/>
464
   <input id="id_ville" class="ville" name="ville" size="35"/>
465
   </td>
466
   </tr>
467
   </table>
468
   <p>
469
   <br/>
470
   <label for="id_tel">Téléphone :</label>
471
   <input id="id_tel" class="tel" name="tel" size="35"/>
472
   <button>+</button>
473
   <p>
474
   <input type="checkbox">Lieu de vie</input>
475
   </p>
476
   </form>
477

  
478
  </div>
479

  
480
  <div id="add-prise-en-charge-dlg" style="display: none;">
481
   <div>
482
    <label for="id_partir">À partir du :</label>
483
    <input id="id_partir" class="partir" name="partir" size="10" value="11/06/2012"/>
484
   </div>
485
   <div>
486
    <label for="id_pour">Pour :</label>
487
    <input id="id_pour" class="pour" name="pour" size="4" value="30"/> séances
488
   </div>
489
  </div>
490

  
491
  <div id="add-prolongation-dlg" style="display: none;">
492
   <div>
493
    <label for="id_pour">Pour :</label>
494
    <input id="id_pour" class="pour" name="pour" size="4" value="10"/> actes
495
   </div>
496
  </div>
497

  
498
  </body>
499
</html>
calebasse/dossiers/templates/dossiers/patient_record_list.html
1
{% extends "calebasse/base.html" %}
2
<!DOCTYPE html>
3
<html lang="fr">
4
  <head>
5
    <meta charset="utf-8"/>
6
    <title>APS42 — Dossiers</title>
7
    <link rel="stylesheet" type="text/css" media="all" href="css/style.css"/>
8
    <link rel="stylesheet" type="text/css" media="all" href="css/smoothness/jquery-ui-1.8.21.custom.css"/>
9

  
10
    <script src="js/jquery-1.7.2.min.js"></script>
11
    <script src="js/jquery-ui-1.8.21.custom.min.js"></script>
12
    <script src="development-bundle/ui/i18n/jquery.ui.datepicker-fr.js"></script>
13
    <script>
14
	$(function() {
15
		$('table#dossiers tr').click(function() {
16
			window.location = 'un-dossier.html';
17
		});
18
		$('#filtre input').click(function () {
19
			var states = new Array();
20
			$('#filtre input:checked').each(function() {
21
				states.push($(this).attr('class'));
22
			});
23
			$('table#dossiers tbody tr').each(function() {
24
				$(this).find(':nth-child(6)').each(function() {
25
					state = $(this).attr('class');
26
					if ($.inArray(state, states) != -1) {
27
						$(this).parent().show();
28
					} else {
29
						$(this).parent().hide();
30
					}
31
				});
32
			});
33
		});
34
		$('#new-dossier').click(function() {
35
			$('#homonyms').hide();
36
			$('#dossier-dlg').dialog({title: 'Nouveau dossier',
37
				  width: '500px',
38
				  buttons: [ { text: "Fermer",
39
					       click: function() { $(this).dialog("close"); } },
40
					     { text: "Ajouter",
41
					       click: function() {
42
						if ($('#homonyms').is(':visible')) {
43
					       	  $(this).dialog("close");
44
						} else {
45
						  $('#homonyms').show();
46
						}
47
					} }]}
48
			);
49
			});
50
		var tempScrollTop, currentScrollTop = 0;
51
		$(window).scroll(function() {
52
			/* load more rows when we reach the bottom of the table */
53
			currentScrollTop = $(window).scrollTop();
54
			if (tempScrollTop < currentScrollTop ) {
55
				if ($('#dossiers').offset().top + $('#dossiers').height() - $(window).scrollTop() - $(window).height() < 20) {
56
					$('#dossiers tbody').append($('#dossiers tbody tr').slice(0, 10).clone());
57
				}
58
			}
59
			tempScrollTop = currentScrollTop;
60
		});
61

  
62
		$('table#dossiers tbody tr').hide();
63
		$('#search-results').hide();
64
		$('#search').click(function () {
65
			$('.big-msg-info').hide();
66
			$('#search-results').show();
67
			$('table#dossiers tbody tr').show();
68
		});
69
	});
70
	</script>
71
  </head>
72
  <body>
73
  <div id="wrap-large">
74
    <div id="header">
75
      <h1><a href="accueil.html">APS 42</a></h1>
76
      <span>Dossiers - CMPP</span>
77
    </div>
78
    <div id="splash" class="cmpp">
79
      <div id="user-links">
80
        <a href="connexion.html">Déconnexion</a>
81
      </div>
82
    </div>
83
    <div id="content">
84

  
85
    <div id="appbar">
86
    <h2>Dossiers</h2>
87
    <a href="accueil.html">Retourner à l'accueil</a>
88

  
89

  
90
    <button id="new-dossier">Nouveau dossier</button>
91
    &nbsp; &nbsp; &nbsp;
92
    <span>Dossiers: <span class="num">1032</span> - En accueil: <span class="num">28</span> - Fin d'accueil: <span class="num">8</span> -
93
    <span>En diagnostic: <span class="num">322</span> - En traitement: <span class="num">485</span> - Clos: <span class="num">193</span></span>
94
    <br/>
95
    <br/>&nbsp;
96
    </div>
97

  
98

  
99
    <div id="sidebar">
100
     <div>
101
      <h3>Rechercher dans les dossiers</h3>
102
       <!--
103
      <ul>
104
       <span title="ces boutons radio sont-ils vraiment nécessaires ? les filtres au-dessus se cochent / décochent facilement">XXX</span>
105
       <li><label><input name="scope" type="radio"/>Tenir compte des états
106
       sélectionnés</label></li>
107
       <li><label><input name="scope" type="radio"/>Rechercher dans tous les
108
       dossiers</label></li>
109
      </ul>
110
      -->
111
       <label>Nom <input type="text"/></label>
112
       <label>Prénom <input type="text"/></label>
113
       <label>Numéro de dossier <input type="text"/></label>
114
       <label>Numéro d'assuré social <input type="text"/></label>
115
       <button id="search">Rechercher</button>
116
       <p id="search-results">
117
        (123 dossiers trouvés)
118
       </p>
119
     </div>
120
     <div id="filtre">
121
      <h3>Filtres sur l'état</h3>
122
      <ul>
123
        <li><label><input checked="checked"  class="en-accueil" type="checkbox"/>En accueil</label></li>
124
        <li><label><input checked="checked"  class="fin-accueil" type="checkbox"/>Fin d'accueil</label></li>
125
        <li><label><input checked="checked"  class="diag" type="checkbox"/>En diagnostic</label></li>
126
        <li><label><input checked="checked"  class="traite" type="checkbox"/>En traitement</label></li>
127
        <li><label><input checked="checked"  class="clos" type="checkbox"/>Clos</label></li>
128
        <li><button>Tous</button> <button>Aucun</button></li>
129
      </ul>
130
      <h3>Afficher les dossiers</h3>
131
     <ul>
132
       <li><button>En pause facturation</button></li>
133
       <li><button>Une prolongation est nécessaire</button></li>
134
       <li><button>Prise en charge arrivant à expiration</button></li>
135
       <li><button>Prise en charge manquante ou expirée</button></li>
136
       <li><button>Eligibles pour un rediagnostic</button></li>
137
     </ul>
138
    </div>
139
   </div>
140

  
141
   <div class="content">
142
   <table id="dossiers" class="main">
143
    <thead>
144
     <tr>
145
     <th colspan="2">N° dossier
146
     <th rowspan="2">Nom</th>
147
     <th rowspan="2">Prénom</th>
148
     <th rowspan="2">Date de naissance</th>
149
     <th rowspan="2">État du dossier</th>
150
     <th rowspan="2"><span title="Information à propos de la prise en charge">I</span> / <span title="Dossier en pause facturation">F</span></th>
151
     <th rowspan="2">Dernier acte</th>
152
     <th rowspan="2">Prochain rendez-vous</th>
153
     </tr>
154
     <tr>
155
     <th>papier</th>
156
     <th>inform.</th>
157
     </tr>
158
    </thead>
159
    <tbody>
160

  
161
     <tr>
162
      <td>12346</td>
163
      <td>67891</td>
164
      <td>Bouclier</td>
165
      <td>Guillaume</td>
166
      <td>12/03/1965</td>
167
      <td class="traite">En traitement</td>
168
      <td></td>
169
      <td>28/06/2012<br/>T - absence excusée</td>
170
      <td>18/08/2012 14:00<br/>Roudon - mini synthèse</td>
171
     </tr>
172

  
173
     <tr>
174
      <td>12347</td>
175
      <td>67892</td>
176
      <td>Hendrickx</td>
177
      <td>André</td>
178
      <td>12/03/1965</td>
179
      <td class="en-accueil">En accueil</td>
180
      <td></td>
181
      <td>28/06/2012<br/>D - absence non excusable</td>
182
      <td>18/08/2012 15:00<br/>Roudon - accueil</td>
183
     </tr>
184

  
185
     <tr>
186
      <td>12348</td>
187
      <td>67893</td>
188
      <td>Manglos</td>
189
      <td>Thérèse</td>
190
      <td>12/03/1965</td>
191
      <td class="en-accueil">En accueil</td>
192
      <td></td>
193
      <td>28/06/2012<br/>T - non facturable</td>
194
      <td>18/08/2012 16:00<br/>Roudon - accueil</td>
195
     </tr>
196

  
197
     <tr>
198
      <td>12349</td>
199
      <td>67894</td>
200
      <td>Caswell</td>
201
      <td>Augustin</td>
202
      <td>12/03/1965</td>
203
      <td class="traite">En traitement</td>
204
      <td></td>
205
      <td>28/06/2012<br/>T - absence non excusable</td>
206
      <td>18/08/2012 14:00<br/>Roudon - mini synthèse</td>
207
     </tr>
208

  
209
     <tr>
210
      <td>12350</td>
211
      <td>67895</td>
212
      <td>Zehkat</td>
213
      <td>Marie</td>
214
      <td>12/03/1965</td>
215
      <td class="traite">En traitement</td>
216
      <td><span title="Information à propos de la prise en charge">I</span></td>
217
      <td>28/06/2012<br/>T - absence non excusable</td>
218
      <td>18/08/2012 14:00<br/>Roudon - mini synthèse</td>
219
     </tr>
220

  
221
     <tr>
222
      <td>12351</td>
223
      <td>67896</td>
224
      <td>Verstraete</td>
225
      <td>Barbara</td>
226
      <td>12/03/1965</td>
227
      <td class="diag">En diagnostic</td>
228
      <td></td>
229
      <td>28/06/2012<br/>T - absence non excusable</td>
230
      <td>18/08/2012 14:00<br/>Roudon - entretien</td>
231
     </tr>
232

  
233
     <tr>
234
      <td>12352</td>
235
      <td>67897</td>
236
      <td>Jover</td>
237
      <td>Henri</td>
238
      <td>12/03/1965</td>
239
      <td class="diag">En diagnostic</td>
240
      <td></td>
241
      <td>28/06/2012<br/>T - absence non excusable</td>
242
      <td>18/08/2012 14:00<br/>Roudon - entretien</td>
243
     </tr>
244

  
245
     <tr>
246
      <td>12361</td>
247
      <td>67898</td>
248
      <td>Masson</td>
249
      <td>Valentine</td>
250
      <td>12/03/1965</td>
251
      <td class="traite">En traitement</td>
252
      <td></td>
253
      <td>28/06/2012<br/>T - absence non excusable</td>
254
      <td>18/08/2012 (...)</td>
255
     </tr>
256

  
257
     <tr>
258
      <td>12353</td>
259
      <td>67899</td>
260
      <td>Sinclair</td>
261
      <td>Juliette</td>
262
      <td>12/03/1965</td>
263
      <td class="diag">En diagnostic</td>
264
      <td></td>
265
      <td>28/06/2012<br/>T - absence non excusable</td>
266
      <td>18/08/2012 (...)</td>
267
     </tr>
268

  
269
     <tr>
270
      <td>12354</td>
271
      <td>67904</td>
272
      <td>Paige</td>
273
      <td>Emmanuelle</td>
274
      <td>12/03/1965</td>
275
      <td class="diag">En diagnostic</td>
276
      <td><span title="Dossier en pause facturation">F</span></td>
277
      <td>28/06/2012<br/>T - absence non excusable</td>
278
      <td>18/08/2012 (...)</td>
279
     </tr>
280

  
281
     <tr>
282
      <td>12355</td>
283
      <td>67900</td>
284
      <td>Kosumovic</td>
285
      <td>Timothée</td>
286
      <td>12/03/1965</td>
287
      <td class="fin-accueil">Fin d'accueil</td>
288
      <td></td>
289
      <td>28/06/2012<br/>T - absence non excusable</td>
290
      <td>18/08/2012 (...)</td>
291
     </tr>
292

  
293
     <tr class="clos">
294
      <td>12346</td>
295
      <td>67891</td>
296
      <td>Bouclier</td>
297
      <td>Guillaume</td>
298
      <td>12/03/1965</td>
299
      <td class="clos">Clos<br/>23/07/2012</td>
300
      <td></td>
301
      <td>28/06/2012<br/>T - absence non excusable</td>
302
      <td>18/08/2012 (...)</td>
303
     </tr>
304

  
305
     <tr>
306
      <td>12347</td>
307
      <td>67892</td>
308
      <td>Hendrickx</td>
309
      <td>André</td>
310
      <td>12/03/1965</td>
311
      <td class="diag">En diagnostic</td>
312
      <td></td>
313
      <td>28/06/2012<br/>T - absence non excusable</td>
314
      <td>18/08/2012 (...)</td>
315
     </tr>
316

  
317
     <tr>
318
      <td>12348</td>
319
      <td>67893</td>
320
      <td>Manglos</td>
321
      <td>Thérèse</td>
322
      <td>12/03/1965</td>
323
      <td class="diag">En diagnostic</td>
324
      <td><span title="Information à propos de la prise en charge">I</span> / <span title="Dossier en pause facturation">F</span></td>
325
      <td>28/06/2012<br/>T - absence non excusable</td>
326
      <td>18/08/2012 (...)</td>
327
     </tr>
328

  
329
     <tr>
330
      <td>12349</td>
331
      <td>67894</td>
332
      <td>Caswell</td>
333
      <td>Augustin</td>
334
      <td>12/03/1965</td>
335
      <td class="diag">En diagnostic</td>
336
      <td></td>
337
      <td>28/06/2012<br/>T - absence non excusable</td>
338
      <td>18/08/2012 (...)</td>
339
     </tr>
340

  
341
     <tr>
342
      <td>12350</td>
343
      <td>67895</td>
344
      <td>Zehkat</td>
345
      <td>Marie</td>
346
      <td>12/03/1965</td>
347
      <td class="traite">En traitement</td>
348
      <td></td>
349
      <td>28/06/2012<br/>T - absence non excusable</td>
350
      <td>18/08/2012 (...)</td>
351
     </tr>
352

  
353
     <tr>
354
      <td>12351</td>
355
      <td>67896</td>
356
      <td>Verstraete</td>
357
      <td>Barbara</td>
358
      <td>12/03/1965</td>
359
      <td class="traite">En traitement</td>
360
      <td></td>
361
      <td>28/06/2012<br/>T - absence non excusable</td>
362
      <td>18/08/2012 (...)</td>
363
     </tr>
364

  
365
     <tr>
366
      <td>12352</td>
367
      <td>67897</td>
368
      <td>Jover</td>
369
      <td>Henri</td>
370
      <td>12/03/1965</td>
371
      <td class="traite">En traitement</td>
372
      <td></td>
373
      <td>28/06/2012<br/>T - absence non excusable</td>
374
      <td>18/08/2012 (...)</td>
375
     </tr>
376

  
377
     <tr>
378
      <td>12361</td>
379
      <td>67898</td>
380
      <td>Masson</td>
381
      <td>Valentine</td>
382
      <td>12/03/1965</td>
383
      <td class="traite">En traitement</td>
384
      <td></td>
385
      <td>28/06/2012<br/>T - absence non excusable</td>
386
      <td>18/08/2012 (...)</td>
387
     </tr>
388

  
389
     <tr>
390
      <td>12353</td>
391
      <td>67899</td>
392
      <td>Sinclair</td>
393
      <td>Juliette</td>
394
      <td>12/03/1965</td>
395
      <td class="diag">En diagnostic</td>
396
      <td></td>
397
      <td>28/06/2012<br/>T - absence non excusable</td>
398
      <td>18/08/2012 (...)</td>
399
     </tr>
400

  
401
     <tr>
402
      <td>12354</td>
403
      <td>67904</td>
404
      <td>Paige</td>
405
      <td>Emmanuelle</td>
406
      <td>12/03/1965</td>
407
      <td class="traite">En traitement</td>
408
      <td></td>
409
      <td>28/06/2012<br/>T - absence non excusable</td>
410
      <td>18/08/2012 (...)</td>
411
     </tr>
412

  
413
     <tr>
414
      <td>12355</td>
415
      <td>67900</td>
416
      <td>Kosumovic</td>
417
      <td>Timothée</td>
418
      <td>12/03/1965</td>
419
      <td class="diag">En diagnostic</td>
420
      <td></td>
421
      <td>28/06/2012<br/>T - absence non excusable</td>
422
      <td>18/08/2012 (...)</td>
423
     </tr>
424

  
425
    </tbody>
426
   </table>
427

  
428
   <div class="big-msg-info">
429
     Utilisez le formulaire de recherche sur la gauche de l'écran pour afficher
430
     les dossiers correspondants.
431
   </div>
432

  
433
   </div>
434

  
435
    </div>
436

  
437
    <div id="footer">
438
439
    </div>
440
  </div>
441

  
442
  <div id="dossier-dlg" style="display: none;">
443
   <form>
444
   <p>
445
    <label for="id_nom">Nom :</label>
446
    <input id="id_nom" type="text" name="nom"/>
447
   </p>
448
   <p>
449
    <label for="id_prenom">Prénom :</label>
450
    <input id="id_prenom" type="text" name="prenom"/>
451
   </p>
452
   </form>
453

  
454
  <div id="homonyms" style="display: none;">
455
   <p>Attention, il existe des homonymes; cliquez sur le bouton pour consulter
456
      le dossier correspondant. Si vous voulez confirmer la création d'un nouveau
457
      dossier, cliquez sur le bouton 'Ajouter'.</p>
458
   <button>Doe James</button><br/>
459
   <button>Doe Dolassaumure</button>
460
  </div>
461
  </div>
462

  
463
  </body>
464
</html>
calebasse/dossiers/templates/dossiers/patient_record_new.html
1
{% extends "calebasse/popup.html" %}
calebasse/dossiers/templates/dossiers/patientrecord_confirm_delete.html
1
{% extends "calebasse/popup.html" %}
calebasse/dossiers/templates/dossiers/patientrecord_edit.html
1
{% extends "calebasse/base.html" %}
2
<!DOCTYPE html>
3
<html lang="fr">
4
  <head>
5
    <meta charset="utf-8"/>
6
    <title>APS42 — Dossier - 12346 - Bouclier Guillaume</title>
7
    <link rel="stylesheet" type="text/css" media="all" href="css/style.css"/>
8
    <link rel="stylesheet" type="text/css" media="all" href="css/smoothness/jquery-ui-1.8.21.custom.css"/>
9

  
10
    <script src="js/jquery-1.7.2.min.js"></script>
11
    <script src="js/jquery-ui-1.8.21.custom.min.js"></script>
12
    <script src="development-bundle/ui/i18n/jquery.ui.datepicker-fr.js"></script>
13
    <script>
14
	$(function() {
15
		$('#tabs').tabs();
16
		$('#clore-dossier').click(function() {
17
			$('#dossier-change').dialog({title: 'Changement - Clôture',
18
				width: '500px',
19
				  buttons: [ { text: "Annuler",
20
					       click: function() { $(this).dialog("close"); } },
21
					     { text: "Valider",
22
					       click: function() { $(this).dialog("close"); } }]}
23
			);
24
			});
25
		$('#reaccueillir-dossier').click(function() {
26
			$('#dossier-change').dialog({title: 'Changement - Réaccueil',
27
				width: '500px',
28
				  buttons: [ { text: "Annuler",
29
					       click: function() { $(this).dialog("close"); } },
30
					     { text: "Valider",
31
					       click: function() { $(this).dialog("close"); } }]}
32
			);
33
			});
34
		$('#historique-dossier').click(function() {
35
			$('#dossier-histo-dlg').dialog({title: 'Historique dossier',
36
				width: '500px',
37
				  buttons: [ { text: "Fermer",
38
					       click: function() { $(this).dialog("close"); } }]}
39
			);
40
			});
41
		$('#new-address-btn').click(function() {
42
			$('#new-address-dlg').dialog({title: 'Nouvelle adresse',
43
				width: '500px',
44
				  buttons: [ { text: "Annuler",
45
					       click: function() { $(this).dialog("close"); } },
46
					     { text: "Valider",
47
					       click: function() { $(this).dialog("close"); } }]}
48
			);
49
			});
50

  
51
		$('#add-prise-en-charge-btn').click(function() {
52
			$('#add-prise-en-charge-dlg').dialog({title: 'Prise en charge',
53
				width: '300px',
54
				  buttons: [ { text: "Annuler",
55
					       click: function() { $(this).dialog("close"); } },
56
					     { text: "Valider",
57
					       click: function() { $(this).dialog("close"); } }]}
58
			);
59
			});
60

  
61
		$('#add-prolongation-btn').click(function() {
62
			$('#add-prolongation-dlg').dialog({title: 'Prolongation',
63
				width: '300px',
64
				  buttons: [ { text: "Annuler",
65
					       click: function() { $(this).dialog("close"); } },
66
					     { text: "Valider",
67
					       click: function() { $(this).dialog("close"); } }]}
68
			);
69
			});
70

  
71
                $('button.blind').next().hide();
72
                $('button.blind').click(function() {
73
                        $(this).next().toggle('blind');
74
                });
75
	});
76
	</script>
77
  </head>
78
  <body>
79
  <div id="wrap-large">
80
    <div id="header">
81
      <h1><a href="accueil.html">APS 42</a></h1>
82
      <span>Dossiers - CMPP</span>
83
    </div>
84
    <div id="splash" class="cmpp">
85
      <div id="user-links">
86
        <a href="connexion.html">Déconnexion</a>
87
      </div>
88
    </div>
89
    <div id="content">
90

  
91
    <div id="appbar">
92
    <h2>Bouclier Guillaume - Dossier 56789</h2>
93
    <a href="dossiers.html">Retourner aux dossiers</a>
94
    <button>Supprimer</button>
95
    </div>
96

  
97
    <div id="tabs">
98
    <ul>
99
     <li><a href="#tabs-1">Général</a></li>
100
     <li><a href="#tabs-2">Fiche administrative</a></li>
101
     <li><a href="#tabs-3">Adresses / contacts</a></li>
102
     <li><a href="#tabs-4">Prise en charge</a></li>
103
     <!--<li><a href="#tabs-5">Liste des actes</a>-->
104
     <li><a href="#tabs-6">Prochains rendez-vous</a>
105
     <li><a href="#tabs-7">Socialisation</a>
106
     <li><a href="#tabs-8">Données à caractère médical</a>
107
    </ul>
108
    <div id="tabs-1"> <!-- Général -->
109
     <div class="left">
110
     <ul>
111
      <li><label>N° dossier papier :</label> 12345 <button>✍</button></li>
112
      <li><label>N° dossier informatique :</label> 67890</li>
113
      <li><label>Nom :</label> Bouclier</li>
114
      <li><label>Prénom :</label> Guillaume</li>
115
      <li><label>Date de naissance :</label> 1/1/2005</li>
116
      <li><label>Lieux de vie :</label>
117
        <ul>
118
          <li>Adresse A - Téléphone A</li>
119
          <li>Adresse B - Téléphone B</li>
120
        </ul></li>
121
      <li><label>Date d'inscription :</label> 01/06/2012</li>
122
      <li><label>Lieu de socialisation :</label> École Truc</li>
123
      <li><label>Commentaire :</label><br/><textarea cols="50" rows="5"></textarea> <button>Mettre à jour</button></li>
124
     </ul>
125
     </div>
126
     <div class="right">
127
     <ul>
128
      <li><label>Dernier acte :</label> 28/06/2012 - T - absence excusée</li>
129
      <li><label>Prochain rendez-vous :</label> 18/08/2012 - Roudon - mini synthèse.</li>
130
     </ul>
131
     <div class="etat">
132
       <h4>État du dossier :  en diagnostic</h4>
133
       <p>depuis le 20/05/2012</p>
134
       <p><label>Commentaire :</label> bla bla bla bla</p>
135
       <button id="clore-dossier">Clore</button>
136
       <button id="reaccueillir-dossier">Ré-accueillir</button>
137
       <button id="historique-dossier">Historique</button><br/>
138
       <hr/>
139
       3/6 diagnostics
140
     </div>
141

  
142
     <div class="notifs">
143
       <h4>Notifications</h4>
144
       <ul>
145
        <li>Dossier en pause facturation <button>Sortir</button></li>
146
       </ul>
147
     </div>
148

  
149
     </div>
150
     <br style="clear:both"/>
151
    </div>
152

  
153
    <div id="tabs-2"> <!-- Fiche administrative -->
154
     <div class="frame">
155
     <h3>État civil</h3>
156
     <button class="save">✔</button>
157
     <p><label>Nom :</label> <input value="Bouclier"/>
158
     <label>Prénom(s) :</label> <input value="Guillaume"/></p>
159
     <p><label>Date de naissance :</label> <input value="1/1/2005"/>
160
     <label>Genre :</label> <input value="M"/>
161
     <label>Nationalité :</label> <input value="française"/></p>
162
     </div>
163

  
164
     <div class="frame">
165
     <h3>Physiologie</h3>
166
     <button class="save">✔</button>
167
     <p><label>Taille (cm) :</label> <input value="176"/>
168
        <label>Poids (kg) :</label> <input value="68"/>
169
        <label>Terme en semaines :</label> <input/></p>
170
     </div>
171

  
172
     <div class="frame">
173
     <h3>Inscription</h3>
174
     <button class="save">✔</button>
175
     <p>
176
      <label>Motif (analysé) :</label> <select><option>Indéfini</option></select> <button>+</button>
177
      <label>Motif (famille) :</label> <select><option>Indéfini</option></select> <button>+</button>
178
      <label>Conseilleur :</label> <select><option>Indéfini</option></select> <button>+</button>
179
     </p>
180

  
181
     </div>
182

  
183
     <div class="frame">
184
     <h3>Famille</h3>
185
     <button class="save">✔</button>
186
     <p><label>Place dans la fratrie :</label> <input size="4"/>
187
        <label>Nombre d'enfants dans la fratrie :</label> <input size="4"/>
188
        <label>Rang (gémellité) :</label> <input size="4"/>
189
     </p>
190
     <p>
191
      <label>Autorité parentale :</label> <select><option>Indéfini</option></select> <button>+</button>
192
      <label>Situation familiale :</label> <select><option>Indéfini</option></select> <button>+</button>
193
      <label>Garde parentale :</label> <select><option>Indéfini</option></select> <button>+</button>
194
     </p>
195

  
196
     </div>
197

  
198
     <div class="frame">
199
     <h3>Transport</h3>
200
     <button class="save">✔</button>
201
     <p>
202
      <label>Type de transport :</label> <select><option>Indéfini</option></select> <button>+</button>
203
      <label>Compagnie de transport :</label> <select><option>Indéfini</option></select> <button>+</button>
204
     </p>
205
     <table>
206
      <tr><td><button>Attestation</button></td> <td><button>Prescription</td></tr>
207
      <tr><td>Dernière attestation le 25/07/2012 <button>Historique</button></td>
208
          <td>Dernière prescription le 25/07/2012 <button>Historique</button></td></tr>
209
     </table>
210
     </div>
211

  
212
     <div class="frame">
213
     <h3>Suivi du patient</h3>
214
     <button class="save">✔</button>
215
     <p>
216
      <label>Coordinateur I :</label> <select><option>Indéfini</option></select> <button>+</button>
217
      <label>Coordinateur II :</label> <select><option>Indéfini</option></select> <button>+</button>
218
      <label>Coordinateur III :</label> <select><option>Indéfini</option></select> <button>+</button>
219
     </p>
220
     <p>
221
      <label>Médecin extérieur :</label> <select><option>Indéfini</option></select> <button>+</button>
222
      <label>Intervenant extérieur :</label> <select><option>Indéfini</option></select> <button>+</button>
223
     </p>
224
     </div>
225

  
226
    </div>
227

  
228
    <div id="tabs-3"> <!-- Adresses / Contacts -->
229
      <button id="new-address-btn">Nouvelle adresse</button> <button>Nouveau contact</button>
230
      <div class="frame">
231
       <h3>16 rue du Clocher</h3>
232
       <div class="buttons"><button>➖</button> <button>✍</button></div>
233
       <div class="right">
234
       <input type="checkbox" checked>Lieu de vie</input>
235
       </div>
236
       <p>13004 Marseille</p>
237
       <p>04 91 12 34 56</p>
238
       <div class="contact">
239
        <h4>Mme Marie Carmarie</h4>
240
        <div class="right">
241
         <input type="radio" name="radio-assure" checked="checked">Assuré</input>
242
         <button>➖</button> <button>✍</button>
243
        </div>
244
        <p>2 70 12 34 567 890 12</p>
245
        <p>06 12 34 56 78</p>
246
       </div>
247
       <div class="contact patient">
248
        <h4>M. Guillaume Bouclier (PATIENT)</h4>
249
        <div class="right">
250
         <input type="radio" name="radio-assure" >Assuré</input>
251
         <button>➖</button> <button>✍</button>
252
        </div>
253
        <p>1 04 12 34 567 890 12</p>
254
       </div>
255
      </div>
256

  
257
      <div class="frame">
258
       <h3>2 rue du Château</h3>
259
       <div class="buttons"><button>➖</button> <button>✍</button></div>
260
       <div class="right">
261
       <input type="checkbox">Lieu de vie</input>
262
       </div>
263
       <p>42000 Saint-Etienne</p>
264
       <p>04 77 12 34 56</p>
265
       <div class="contact">
266
        <h4>M. John Leponge</h4>
267
        <div class="right">
268
         <input type="radio" name="radio-assure">Assuré</input>
269
         <button>➖</button> <button>✍</button>
270
        </div>
271
        <p>1 70 12 34 567 890 12</p>
272
       </div>
273
      </div>
274

  
275
    </div>
276

  
277
    <div id="tabs-4"> <!-- Prise en charge -->
278
      <div id="patient-diag">
279
      <div class="frame">
280
       <h3>En diagnostic depuis le 11 juin 2012</h3>
281
       <ul>
282
       <li><input size="4" value="6"/> actes prévus</li>
283
       <li><strong>3</strong> actes réalisés dont <strong>2</strong> facturés <button class="blind">détails</button>
284
         <ul>
285
          <li>Facturation <strong>28</strong> (assuré: Sophie Fonfec) - <strong>2</strong> actes
286
           <ul>
287
            <li>Accueil le 11 juin 2012 - 9h00 - 45 minutes - Bob Leponge</li>
288
            <li>Dialogue le 12 juin 2012 - 10h00 - 30 minutes - Bob Leponge</li>
289
           </ul></li>
290
          <li>Non facturé - <strong>1 acte</strong>
291
           <ul>
292
            <li>Dialogue le 13 juin 2012 - 11h00 - 45 minutes - Sandy Kilo</li>
293
           </ul></li>
294
         </ul>
295
         </li>
296
       </ul>
297
      </div>
298
      </div>
299

  
300
      <div id="patient-traitement" style="display: none;">
301
       <div class="frame">
302
       <h3>En diagnostic depuis le 6 mars 2012</h3>
303
       <ul>
304
       <li><strong>6</strong> actes réalisés et facturés <button class="blind">détails</button>
305
         <ul>
306
          <li>Facturation <strong>28</strong> (assuré: Sophie Fonfec) - <strong>6</strong> actes
307
           <ul>
308
            <li>...</li>
309
           </ul></li>
310
         </ul>
311
         </li>
312
       </ul>
313
       </div>
314

  
315
       <div class="frame">
316
        <h3>En traitement depuis le 11 juin 2012</h3>
317
        <ul>
318
         <li><strong>4</strong> actes réalisés <button class="blind">détails</button>
319
          <ul><li>...</li></ul>
320
          </li>
321
         <li>Pas de prise en charge - <button id="add-prise-en-charge-btn">Ajouter une prise en charge</button></li>
322
        </ul>
323
       </div>
324

  
325
      </div>
326

  
327
      <div id="patient-traitement-charge" style="display: none;">
328

  
329
       <div class="frame">
330
       <h3>En diagnostic depuis le 2 avril 2008</h3>
331
       <ul>
332
       <li><strong>3</strong> actes réalisés et facturés <button class="blind">détails</button>
333
         <ul>
334
          <li>Facturation <strong>28</strong> (assuré: Sophie Fonfec) - <strong>3</strong> actes
335
           <ul>
336
            <li>...</li>
337
           </ul></li>
338
         </ul>
339
         </li>
340
       </ul>
341
       </div>
342

  
343
       <div class="frame">
344
       <h3>En diagnostic depuis le 5 octobre 2010</h3>
345
       <ul>
346
       <li><strong>6</strong> actes réalisés et facturés <button class="blind">détails</button>
347
         <ul>
348
          <li>Facturation <strong>28</strong> (assuré: Sophie Fonfec) - <strong>6</strong> actes
349
           <ul>
350
            <li>...</li>
351
           </ul></li>
352
         </ul>
353
         </li>
354
       </ul>
355
       </div>
356

  
357
       <div class="frame">
358
        <h3>En traitement depuis le 12 décembre 2010</h3>
359
        <ul>
360
         <li>Prise en charge depuis le 12 décembre 2010
361
          <ul>
362
           <li><strong>30</strong> actes réalisés et facturés <button class="blind">détails</button>
363
            <ul><li>...</li></ul></li>
364
           <li><strong>10</strong> actes réalisés et facturés en prolongation <button class="blind">détails</button>
365
            <ul><li>...</li></ul></li>
366
           <li><strong>6</strong> actes réalisés et non pris en charge <button class="blind">détails</button>
367
            <ul><li>...</li></ul></li>
368
          </ul>
369
         </li>
370
         <li>Prise en charge depuis le 15 décembre 2011
371
          <ul>
372
           <li><strong>30</strong> actes réalisés et facturés <button class="blind">détails</button>
373
            <ul><li>...</li></ul></li>
374
           <li><strong>6</strong> actes réalisés non facturés <button class="blind">détails</button>
375
            <ul><li>...</li></ul></li>
376
           <li><button id="add-prolongation-btn">Ajouter une prolongation</button></li>
377
          </ul>
378
         </li>
379
        </ul>
380
       </div>
381

  
382

  
383
      </div>
384

  
385
      <div id="overlay">
386
      <p>
387
       Exemples pour cet onglet :
388
        <a href="#" onclick="$('#patient-diag').show(); $('#patient-traitement').hide(); $('#patient-traitement-charge').hide();">Patient en diagnostic</a> -
389
        <a href="#" onclick="$('#patient-diag').hide(); $('#patient-traitement').show(); $('#patient-traitement-charge').hide();">Patient en traitement</a> -
390
        <a href="#" onclick="$('#patient-diag').hide(); $('#patient-traitement').hide(); $('#patient-traitement-charge').show();">Patient en traitement avec prise en charge</a>
391
      </p>
392
      </div>
393

  
394
    </div>
395

  
396
    <!--
397
    <div id="tabs-5">
398
    </div>
399
    -->
400

  
401
    <div id="tabs-6">
402
    </div>
403

  
404
    <div id="tabs-7">
405
    </div>
406

  
407
    <div id="tabs-8">
408
    </div>
409
    </div>
410

  
411
    <div id="footer">
412
413
    </div>
414
  </div>
415

  
416
  <div id="dossier-change" style="display: none;">
417
   <form>
418
   <p>
419
   <label for="id_date">Date :</label>
420
   <input id="id_date" class="date" name="date" value="5/7/2012"/>
421
   </p>
422
   <p>
423
    <label for="id_comment">Commentaire :</label>
424
    <textarea id="id_comment" style="width: 90%;"></textarea>
425
   </p>
426
   </form>
427
  </div>
428

  
429
  <div id="dossier-histo-dlg" style="display: none;">
430
   <dl>
431
    <dt><b>20/05/2012</b> <small>(date info: 22/05/2012)</small></dt>
432
    <dd>
433
     <p><b>en diagnostic</b>; <label>commentaire:</label> bla bla bla bla</p>
434
     <p>changement manuel (par M. Tom)</p>
435
    </dd>
436
    <dt><b>10/05/2012</b></dt>
437
    <dd>
438
     <p><b>accueil</b>; <label>commentaire:</label> bla bla bla bla</p>
439
     <p>changement manuel (par M. Tom)</p>
440
    </dd>
441
   </dl>
442
  </div>
443

  
444
  <div id="new-address-dlg" style="display: none;">
445
   <form>
446
   <table>
447
   <tr>
448
   <td>
449
   <label for="id_numero">Numéro :</label><br/>
450
   <input id="id_numero" class="numero" name="numero" size="10"/>
451
   </td>
452
   <td>
453
   <label for="id_rue">Rue :</label><br/>
454
   <input id="id_rue" class="rue" name="rue" size="35"/>
455
   </td>
456
   </tr>
457
   <tr>
458
   <td>
459
   <label for="id_cp">Code postal :</label><br/>
460
   <input id="id_cp" class="cp" name="cp" size="10"/>
461
   </td>
462
   <td>
463
   <label for="id_ville">Ville :</label><br/>
464
   <input id="id_ville" class="ville" name="ville" size="35"/>
465
   </td>
466
   </tr>
467
   </table>
468
   <p>
469
   <br/>
470
   <label for="id_tel">Téléphone :</label>
471
   <input id="id_tel" class="tel" name="tel" size="35"/>
472
   <button>+</button>
473
   <p>
474
   <input type="checkbox">Lieu de vie</input>
475
   </p>
476
   </form>
477

  
478
  </div>
479

  
480
  <div id="add-prise-en-charge-dlg" style="display: none;">
481
   <div>
482
    <label for="id_partir">À partir du :</label>
483
    <input id="id_partir" class="partir" name="partir" size="10" value="11/06/2012"/>
484
   </div>
485
   <div>
486
    <label for="id_pour">Pour :</label>
487
    <input id="id_pour" class="pour" name="pour" size="4" value="30"/> séances
488
   </div>
489
  </div>
490

  
491
  <div id="add-prolongation-dlg" style="display: none;">
492
   <div>
493
    <label for="id_pour">Pour :</label>
494
    <input id="id_pour" class="pour" name="pour" size="4" value="10"/> actes
495
   </div>
496
  </div>
497

  
498
  </body>
499
</html>
calebasse/dossiers/templates/dossiers/patientrecord_list.html
1
{% extends "calebasse/base.html" %}
2
<!DOCTYPE html>
3
<html lang="fr">
4
  <head>
5
    <meta charset="utf-8"/>
6
    <title>APS42 — Dossiers</title>
7
    <link rel="stylesheet" type="text/css" media="all" href="css/style.css"/>
8
    <link rel="stylesheet" type="text/css" media="all" href="css/smoothness/jquery-ui-1.8.21.custom.css"/>
9

  
10
    <script src="js/jquery-1.7.2.min.js"></script>
11
    <script src="js/jquery-ui-1.8.21.custom.min.js"></script>
12
    <script src="development-bundle/ui/i18n/jquery.ui.datepicker-fr.js"></script>
13
    <script>
14
	$(function() {
15
		$('table#dossiers tr').click(function() {
16
			window.location = 'un-dossier.html';
17
		});
18
		$('#filtre input').click(function () {
19
			var states = new Array();
20
			$('#filtre input:checked').each(function() {
21
				states.push($(this).attr('class'));
22
			});
23
			$('table#dossiers tbody tr').each(function() {
24
				$(this).find(':nth-child(6)').each(function() {
25
					state = $(this).attr('class');
26
					if ($.inArray(state, states) != -1) {
27
						$(this).parent().show();
28
					} else {
29
						$(this).parent().hide();
30
					}
31
				});
32
			});
33
		});
34
		$('#new-dossier').click(function() {
35
			$('#homonyms').hide();
36
			$('#dossier-dlg').dialog({title: 'Nouveau dossier',
37
				  width: '500px',
38
				  buttons: [ { text: "Fermer",
39
					       click: function() { $(this).dialog("close"); } },
40
					     { text: "Ajouter",
41
					       click: function() {
42
						if ($('#homonyms').is(':visible')) {
43
					       	  $(this).dialog("close");
44
						} else {
45
						  $('#homonyms').show();
46
						}
47
					} }]}
48
			);
49
			});
50
		var tempScrollTop, currentScrollTop = 0;
51
		$(window).scroll(function() {
52
			/* load more rows when we reach the bottom of the table */
53
			currentScrollTop = $(window).scrollTop();
54
			if (tempScrollTop < currentScrollTop ) {
55
				if ($('#dossiers').offset().top + $('#dossiers').height() - $(window).scrollTop() - $(window).height() < 20) {
56
					$('#dossiers tbody').append($('#dossiers tbody tr').slice(0, 10).clone());
57
				}
58
			}
59
			tempScrollTop = currentScrollTop;
60
		});
61

  
62
		$('table#dossiers tbody tr').hide();
63
		$('#search-results').hide();
64
		$('#search').click(function () {
65
			$('.big-msg-info').hide();
66
			$('#search-results').show();
67
			$('table#dossiers tbody tr').show();
68
		});
69
	});
70
	</script>
71
  </head>
72
  <body>
73
  <div id="wrap-large">
74
    <div id="header">
75
      <h1><a href="accueil.html">APS 42</a></h1>
76
      <span>Dossiers - CMPP</span>
77
    </div>
78
    <div id="splash" class="cmpp">
79
      <div id="user-links">
80
        <a href="connexion.html">Déconnexion</a>
81
      </div>
82
    </div>
83
    <div id="content">
84

  
85
    <div id="appbar">
86
    <h2>Dossiers</h2>
87
    <a href="accueil.html">Retourner à l'accueil</a>
88

  
89

  
90
    <button id="new-dossier">Nouveau dossier</button>
91
    &nbsp; &nbsp; &nbsp;
92
    <span>Dossiers: <span class="num">1032</span> - En accueil: <span class="num">28</span> - Fin d'accueil: <span class="num">8</span> -
93
    <span>En diagnostic: <span class="num">322</span> - En traitement: <span class="num">485</span> - Clos: <span class="num">193</span></span>
94
    <br/>
95
    <br/>&nbsp;
96
    </div>
97

  
98

  
99
    <div id="sidebar">
100
     <div>
101
      <h3>Rechercher dans les dossiers</h3>
102
       <!--
103
      <ul>
104
       <span title="ces boutons radio sont-ils vraiment nécessaires ? les filtres au-dessus se cochent / décochent facilement">XXX</span>
105
       <li><label><input name="scope" type="radio"/>Tenir compte des états
106
       sélectionnés</label></li>
107
       <li><label><input name="scope" type="radio"/>Rechercher dans tous les
108
       dossiers</label></li>
109
      </ul>
110
      -->
111
       <label>Nom <input type="text"/></label>
112
       <label>Prénom <input type="text"/></label>
113
       <label>Numéro de dossier <input type="text"/></label>
114
       <label>Numéro d'assuré social <input type="text"/></label>
115
       <button id="search">Rechercher</button>
116
       <p id="search-results">
117
        (123 dossiers trouvés)
118
       </p>
119
     </div>
120
     <div id="filtre">
121
      <h3>Filtres sur l'état</h3>
122
      <ul>
123
        <li><label><input checked="checked"  class="en-accueil" type="checkbox"/>En accueil</label></li>
124
        <li><label><input checked="checked"  class="fin-accueil" type="checkbox"/>Fin d'accueil</label></li>
125
        <li><label><input checked="checked"  class="diag" type="checkbox"/>En diagnostic</label></li>
126
        <li><label><input checked="checked"  class="traite" type="checkbox"/>En traitement</label></li>
127
        <li><label><input checked="checked"  class="clos" type="checkbox"/>Clos</label></li>
128
        <li><button>Tous</button> <button>Aucun</button></li>
129
      </ul>
130
      <h3>Afficher les dossiers</h3>
131
     <ul>
132
       <li><button>En pause facturation</button></li>
133
       <li><button>Une prolongation est nécessaire</button></li>
134
       <li><button>Prise en charge arrivant à expiration</button></li>
135
       <li><button>Prise en charge manquante ou expirée</button></li>
136
       <li><button>Eligibles pour un rediagnostic</button></li>
137
     </ul>
138
    </div>
139
   </div>
140

  
141
   <div class="content">
142
   <table id="dossiers" class="main">
143
    <thead>
144
     <tr>
145
     <th colspan="2">N° dossier
146
     <th rowspan="2">Nom</th>
147
     <th rowspan="2">Prénom</th>
148
     <th rowspan="2">Date de naissance</th>
149
     <th rowspan="2">État du dossier</th>
150
     <th rowspan="2"><span title="Information à propos de la prise en charge">I</span> / <span title="Dossier en pause facturation">F</span></th>
151
     <th rowspan="2">Dernier acte</th>
152
     <th rowspan="2">Prochain rendez-vous</th>
153
     </tr>
154
     <tr>
155
     <th>papier</th>
156
     <th>inform.</th>
157
     </tr>
158
    </thead>
159
    <tbody>
160

  
161
     <tr>
162
      <td>12346</td>
163
      <td>67891</td>
164
      <td>Bouclier</td>
165
      <td>Guillaume</td>
166
      <td>12/03/1965</td>
167
      <td class="traite">En traitement</td>
168
      <td></td>
169
      <td>28/06/2012<br/>T - absence excusée</td>
170
      <td>18/08/2012 14:00<br/>Roudon - mini synthèse</td>
171
     </tr>
172

  
173
     <tr>
174
      <td>12347</td>
175
      <td>67892</td>
176
      <td>Hendrickx</td>
177
      <td>André</td>
178
      <td>12/03/1965</td>
179
      <td class="en-accueil">En accueil</td>
180
      <td></td>
181
      <td>28/06/2012<br/>D - absence non excusable</td>
182
      <td>18/08/2012 15:00<br/>Roudon - accueil</td>
183
     </tr>
184

  
185
     <tr>
186
      <td>12348</td>
187
      <td>67893</td>
188
      <td>Manglos</td>
189
      <td>Thérèse</td>
190
      <td>12/03/1965</td>
191
      <td class="en-accueil">En accueil</td>
192
      <td></td>
193
      <td>28/06/2012<br/>T - non facturable</td>
194
      <td>18/08/2012 16:00<br/>Roudon - accueil</td>
195
     </tr>
196

  
197
     <tr>
198
      <td>12349</td>
199
      <td>67894</td>
200
      <td>Caswell</td>
201
      <td>Augustin</td>
202
      <td>12/03/1965</td>
203
      <td class="traite">En traitement</td>
204
      <td></td>
205
      <td>28/06/2012<br/>T - absence non excusable</td>
206
      <td>18/08/2012 14:00<br/>Roudon - mini synthèse</td>
207
     </tr>
208

  
209
     <tr>
210
      <td>12350</td>
211
      <td>67895</td>
212
      <td>Zehkat</td>
213
      <td>Marie</td>
214
      <td>12/03/1965</td>
215
      <td class="traite">En traitement</td>
216
      <td><span title="Information à propos de la prise en charge">I</span></td>
217
      <td>28/06/2012<br/>T - absence non excusable</td>
218
      <td>18/08/2012 14:00<br/>Roudon - mini synthèse</td>
219
     </tr>
220

  
221
     <tr>
222
      <td>12351</td>
223
      <td>67896</td>
224
      <td>Verstraete</td>
225
      <td>Barbara</td>
226
      <td>12/03/1965</td>
227
      <td class="diag">En diagnostic</td>
228
      <td></td>
229
      <td>28/06/2012<br/>T - absence non excusable</td>
230
      <td>18/08/2012 14:00<br/>Roudon - entretien</td>
231
     </tr>
232

  
233
     <tr>
234
      <td>12352</td>
235
      <td>67897</td>
236
      <td>Jover</td>
237
      <td>Henri</td>
238
      <td>12/03/1965</td>
239
      <td class="diag">En diagnostic</td>
240
      <td></td>
241
      <td>28/06/2012<br/>T - absence non excusable</td>
242
      <td>18/08/2012 14:00<br/>Roudon - entretien</td>
243
     </tr>
244

  
245
     <tr>
246
      <td>12361</td>
247
      <td>67898</td>
248
      <td>Masson</td>
249
      <td>Valentine</td>
250
      <td>12/03/1965</td>
251
      <td class="traite">En traitement</td>
252
      <td></td>
253
      <td>28/06/2012<br/>T - absence non excusable</td>
254
      <td>18/08/2012 (...)</td>
255
     </tr>
256

  
257
     <tr>
258
      <td>12353</td>
259
      <td>67899</td>
260
      <td>Sinclair</td>
261
      <td>Juliette</td>
262
      <td>12/03/1965</td>
263
      <td class="diag">En diagnostic</td>
264
      <td></td>
265
      <td>28/06/2012<br/>T - absence non excusable</td>
266
      <td>18/08/2012 (...)</td>
267
     </tr>
268

  
269
     <tr>
270
      <td>12354</td>
271
      <td>67904</td>
272
      <td>Paige</td>
273
      <td>Emmanuelle</td>
274
      <td>12/03/1965</td>
275
      <td class="diag">En diagnostic</td>
276
      <td><span title="Dossier en pause facturation">F</span></td>
277
      <td>28/06/2012<br/>T - absence non excusable</td>
278
      <td>18/08/2012 (...)</td>
279
     </tr>
280

  
281
     <tr>
282
      <td>12355</td>
283
      <td>67900</td>
284
      <td>Kosumovic</td>
285
      <td>Timothée</td>
286
      <td>12/03/1965</td>
287
      <td class="fin-accueil">Fin d'accueil</td>
288
      <td></td>
289
      <td>28/06/2012<br/>T - absence non excusable</td>
290
      <td>18/08/2012 (...)</td>
291
     </tr>
292

  
293
     <tr class="clos">
294
      <td>12346</td>
295
      <td>67891</td>
296
      <td>Bouclier</td>
297
      <td>Guillaume</td>
298
      <td>12/03/1965</td>
299
      <td class="clos">Clos<br/>23/07/2012</td>
300
      <td></td>
301
      <td>28/06/2012<br/>T - absence non excusable</td>
302
      <td>18/08/2012 (...)</td>
303
     </tr>
304

  
305
     <tr>
306
      <td>12347</td>
307
      <td>67892</td>
308
      <td>Hendrickx</td>
309
      <td>André</td>
310
      <td>12/03/1965</td>
311
      <td class="diag">En diagnostic</td>
312
      <td></td>
313
      <td>28/06/2012<br/>T - absence non excusable</td>
314
      <td>18/08/2012 (...)</td>
315
     </tr>
316

  
317
     <tr>
318
      <td>12348</td>
319
      <td>67893</td>
320
      <td>Manglos</td>
321
      <td>Thérèse</td>
322
      <td>12/03/1965</td>
323
      <td class="diag">En diagnostic</td>
324
      <td><span title="Information à propos de la prise en charge">I</span> / <span title="Dossier en pause facturation">F</span></td>
325
      <td>28/06/2012<br/>T - absence non excusable</td>
326
      <td>18/08/2012 (...)</td>
327
     </tr>
328

  
329
     <tr>
330
      <td>12349</td>
331
      <td>67894</td>
332
      <td>Caswell</td>
333
      <td>Augustin</td>
334
      <td>12/03/1965</td>
335
      <td class="diag">En diagnostic</td>
336
      <td></td>
337
      <td>28/06/2012<br/>T - absence non excusable</td>
338
      <td>18/08/2012 (...)</td>
339
     </tr>
340

  
341
     <tr>
342
      <td>12350</td>
343
      <td>67895</td>
344
      <td>Zehkat</td>
345
      <td>Marie</td>
346
      <td>12/03/1965</td>
347
      <td class="traite">En traitement</td>
348
      <td></td>
349
      <td>28/06/2012<br/>T - absence non excusable</td>
350
      <td>18/08/2012 (...)</td>
351
     </tr>
352

  
353
     <tr>
354
      <td>12351</td>
355
      <td>67896</td>
356
      <td>Verstraete</td>
357
      <td>Barbara</td>
358
      <td>12/03/1965</td>
359
      <td class="traite">En traitement</td>
360
      <td></td>
361
      <td>28/06/2012<br/>T - absence non excusable</td>
362
      <td>18/08/2012 (...)</td>
363
     </tr>
364

  
365
     <tr>
366
      <td>12352</td>
367
      <td>67897</td>
368
      <td>Jover</td>
369
      <td>Henri</td>
370
      <td>12/03/1965</td>
371
      <td class="traite">En traitement</td>
372
      <td></td>
373
      <td>28/06/2012<br/>T - absence non excusable</td>
374
      <td>18/08/2012 (...)</td>
375
     </tr>
376

  
377
     <tr>
378
      <td>12361</td>
379
      <td>67898</td>
380
      <td>Masson</td>
381
      <td>Valentine</td>
382
      <td>12/03/1965</td>
383
      <td class="traite">En traitement</td>
384
      <td></td>
385
      <td>28/06/2012<br/>T - absence non excusable</td>
386
      <td>18/08/2012 (...)</td>
387
     </tr>
388

  
389
     <tr>
390
      <td>12353</td>
391
      <td>67899</td>
392
      <td>Sinclair</td>
393
      <td>Juliette</td>
394
      <td>12/03/1965</td>
395
      <td class="diag">En diagnostic</td>
396
      <td></td>
397
      <td>28/06/2012<br/>T - absence non excusable</td>
398
      <td>18/08/2012 (...)</td>
399
     </tr>
400

  
401
     <tr>
402
      <td>12354</td>
403
      <td>67904</td>
404
      <td>Paige</td>
405
      <td>Emmanuelle</td>
406
      <td>12/03/1965</td>
407
      <td class="traite">En traitement</td>
408
      <td></td>
409
      <td>28/06/2012<br/>T - absence non excusable</td>
410
      <td>18/08/2012 (...)</td>
411
     </tr>
412

  
413
     <tr>
414
      <td>12355</td>
415
      <td>67900</td>
416
      <td>Kosumovic</td>
417
      <td>Timothée</td>
418
      <td>12/03/1965</td>
419
      <td class="diag">En diagnostic</td>
420
      <td></td>
421
      <td>28/06/2012<br/>T - absence non excusable</td>
422
      <td>18/08/2012 (...)</td>
423
     </tr>
424

  
425
    </tbody>
426
   </table>
427

  
428
   <div class="big-msg-info">
429
     Utilisez le formulaire de recherche sur la gauche de l'écran pour afficher
430
     les dossiers correspondants.
431
   </div>
432

  
433
   </div>
434

  
435
    </div>
436

  
437
    <div id="footer">
438
439
    </div>
440
  </div>
441

  
442
  <div id="dossier-dlg" style="display: none;">
443
   <form>
444
   <p>
445
    <label for="id_nom">Nom :</label>
446
    <input id="id_nom" type="text" name="nom"/>
447
   </p>
448
   <p>
449
    <label for="id_prenom">Prénom :</label>
450
    <input id="id_prenom" type="text" name="prenom"/>
451
   </p>
452
   </form>
453

  
454
  <div id="homonyms" style="display: none;">
455
   <p>Attention, il existe des homonymes; cliquez sur le bouton pour consulter
456
      le dossier correspondant. Si vous voulez confirmer la création d'un nouveau
457
      dossier, cliquez sur le bouton 'Ajouter'.</p>
458
   <button>Doe James</button><br/>
459
   <button>Doe Dolassaumure</button>
460
  </div>
461
  </div>
462

  
463
  </body>
464
</html>
calebasse/dossiers/templates/dossiers/patientrecord_new.html
1
{% extends "calebasse/popup.html" %}
calebasse/dossiers/urls.py
3 3
from calebasse.cbv import ListView, CreateView, DeleteView, UpdateView
4 4

  
5 5
from models import PatientRecord
6
from forms import CreateDossierForm, EditDossierForm
6
from forms import CreatePatientRecordForm, EditPatientRecordForm
7 7

  
8 8
urlpatterns = patterns('',
9 9
    url(r'^$', ListView.as_view(model=PatientRecord)),
10 10
    url(r'^new/$', CreateView.as_view(model=PatientRecord,
11
        form_class=CreateDossierForm,
12
        template_name_suffix='_new.html')),
11
        form_class=CreatePatientRecordForm,
12
        template_name_suffix='_new')),
13 13
    url(r'^(?P<pk>\d+)/$', UpdateView.as_view(model=PatientRecord,
14
        form_class=EditDossierForm,
15
        template_name_suffix='_edit.html')),
16
    url(r'^(?P<pk>\d+)/supprimer/$', DeleteView.as_view(model=PatientRecord)),
14
        form_class=EditPatientRecordForm,
15
        template_name_suffix='_edit')),
16
    url(r'^(?P<pk>\d+)/delete/$', DeleteView.as_view(model=PatientRecord)),
17 17
)

Also available in: Unified diff