1 |
54318d2c
|
Serghei MIHAI
|
{% extends 'dossiers/patientrecord_tab.html' %}
|
2 |
1a3d8912
|
Jérôme Schneider
|
{% load dossiers %}
|
3 |
54318d2c
|
Serghei MIHAI
|
{% block content %}
|
4 |
aa31cdc8
|
Jérôme Schneider
|
<div id="tabs-2">
|
5 |
1a3d8912
|
Jérôme Schneider
|
<form method="post" action="tab2" id="administrative-form" class="patientrecordform">{% csrf_token %}
|
6 |
|
|
<p><button class="save enable-on-change">Enregistrer</button></p>
|
7 |
aa31cdc8
|
Jérôme Schneider
|
<div class="frame inline">
|
8 |
|
|
<h3>État civil</h3>
|
9 |
|
|
<table class="basic">
|
10 |
|
|
<tbody>
|
11 |
1a3d8912
|
Jérôme Schneider
|
{% get_fieldset last_name,first_name,birthplace,birthdate,gender,nationality as id_fields from form %}
|
12 |
|
|
{% for field in id_fields %}
|
13 |
|
|
<tr>
|
14 |
|
|
<td class="width-limited">{{ field.label_tag }}</td>
|
15 |
|
|
<td>{{ field }}</td>
|
16 |
|
|
<td>{{ field.errors }}</td>
|
17 |
|
|
</tr>
|
18 |
|
|
{% endfor %}
|
19 |
aa31cdc8
|
Jérôme Schneider
|
</tbody>
|
20 |
|
|
</table>
|
21 |
|
|
<input type="hidden" name="tab" value="1">
|
22 |
|
|
</div>
|
23 |
1aac2c90
|
Jérôme Schneider
|
|
24 |
aa31cdc8
|
Jérôme Schneider
|
<div class="frame inline">
|
25 |
|
|
<h3>Inscription</h3>
|
26 |
|
|
<table class="basic">
|
27 |
|
|
<tbody>
|
28 |
1a3d8912
|
Jérôme Schneider
|
{% get_fieldset analysemotive,familymotive,provenance,advicegiver,provenanceplace as inscription_fields from form %}
|
29 |
|
|
{% for field in inscription_fields %}
|
30 |
|
|
<tr><td class="width-limited">{{ field.label_tag }}</td><td>{{ field }}
|
31 |
aa31cdc8
|
Jérôme Schneider
|
<button type="button"
|
32 |
|
|
class="dialog-button"
|
33 |
|
|
data-url="../../ressources/{{ field.name }}/new/ #form-content"
|
34 |
|
|
data-default-button="Ajouter"
|
35 |
|
|
data-next-url="{{ request.get_full_path }}#tab=1"
|
36 |
|
|
data-add-select="#id_inscription-{{ field.name }}"
|
37 |
|
|
title="Ajouter un {{ field.label.lower }}"
|
38 |
|
|
type="button">+</button></td><td>{{ field.errors }}</td></tr>
|
39 |
|
|
{% endfor %}
|
40 |
|
|
</tbody>
|
41 |
|
|
</table>
|
42 |
|
|
<input type="hidden" name="tab" value="1">
|
43 |
|
|
</div>
|
44 |
1aac2c90
|
Jérôme Schneider
|
|
45 |
aa31cdc8
|
Jérôme Schneider
|
<div class="frame inline">
|
46 |
|
|
<h3>Sortie</h3>
|
47 |
|
|
<table class="basic">
|
48 |
|
|
<tbody>
|
49 |
1a3d8912
|
Jérôme Schneider
|
{% get_fieldset outmotive,outto as out_fields from form %}
|
50 |
|
|
{% for field in out_fields %}
|
51 |
aa31cdc8
|
Jérôme Schneider
|
<tr><td class="width-limited">{{ field.label_tag }}</td><td>{{ field }}
|
52 |
|
|
<button type="button"
|
53 |
|
|
class="dialog-button"
|
54 |
|
|
data-url="../../ressources/{{ field.name }}/new/ #form-content"
|
55 |
|
|
data-default-button="Ajouter"
|
56 |
|
|
data-next-url="{{ request.get_full_path }}#tab=1"
|
57 |
|
|
data-add-select="#id_out-{{ field.name }}"
|
58 |
|
|
title="Ajouter un {{ field.label.lower }}"
|
59 |
|
|
type="button">+</button></td><td>{{ field.errors }}</td></tr>
|
60 |
|
|
{% endfor %}
|
61 |
|
|
</tbody>
|
62 |
|
|
</table>
|
63 |
|
|
<input type="hidden" name="tab" value="1">
|
64 |
|
|
</div>
|
65 |
dc1389b8
|
Mikaël Ates
|
|
66 |
aa31cdc8
|
Jérôme Schneider
|
<div class="frame inline">
|
67 |
|
|
<h3>Famille</h3>
|
68 |
|
|
<table class="basic">
|
69 |
|
|
<tbody>
|
70 |
1a3d8912
|
Jérôme Schneider
|
<tr><td class="width-limited">{{ form.sibship_place.label_tag }}</td><td>{{ form.sibship_place }}</td><td>{{ form.sibship_place.errors }}</td></tr>
|
71 |
|
|
<tr><td class="width-limited">{{ form.nb_children_family.label_tag }}</td><td>{{ form.nb_children_family }}</td><td>{{ form.nb_children_family.errors }}</td></tr>
|
72 |
aa31cdc8
|
Jérôme Schneider
|
<tr><td class="width-limited"><label>Rang (gémellité) : </label></td><td>{{ object.twinning_rank|default_if_none:"Aucun" }}</td><td></td></tr>
|
73 |
1a3d8912
|
Jérôme Schneider
|
{% get_fieldset parental_authority,family_situation,child_custody,job_mother,job_father,rm_mother,rm_father as familly_fields from form %}
|
74 |
|
|
{% for field in familly_fields %}
|
75 |
|
|
<tr>
|
76 |
|
|
<td class="width-limited">{{ field.label_tag }}</td><td>{{ field }}
|
77 |
aa31cdc8
|
Jérôme Schneider
|
<button type="button"
|
78 |
|
|
class="dialog-button"
|
79 |
|
|
data-url="../../ressources/parentalauthoritytype/new/ #form-content"
|
80 |
|
|
data-default-button="Ajouter"
|
81 |
|
|
data-next-url="{{ request.get_full_path }}#tab=1"
|
82 |
|
|
data-add-select="#id_family-parental_authority"
|
83 |
1a3d8912
|
Jérôme Schneider
|
title="Ajouter {{ field.label.lower }}">+</button></td><td>{{ field.errors }}</td>
|
84 |
|
|
</tr>
|
85 |
|
|
{% endfor %}
|
86 |
|
|
<tr><td class="width-limited">{{ form.family_comment.label_tag }}</td><td>{{ form.family_comment }}</td><td>{{ form.family_comment.errors }}</td></tr>
|
87 |
aa31cdc8
|
Jérôme Schneider
|
</tbody>
|
88 |
|
|
</table>
|
89 |
|
|
<input type="hidden" name="tab" value="1">
|
90 |
|
|
</div>
|
91 |
1aac2c90
|
Jérôme Schneider
|
|
92 |
aa31cdc8
|
Jérôme Schneider
|
<div class="frame inline">
|
93 |
|
|
<h3>Transport</h3>
|
94 |
|
|
<table class="basic">
|
95 |
|
|
<tbody>
|
96 |
1a3d8912
|
Jérôme Schneider
|
{% get_fieldset transporttype,transportcompany,simple_appointment_transport,periodic_appointment_transport as transport_fields from form %}
|
97 |
|
|
{% for field in transport_fields %}
|
98 |
aa31cdc8
|
Jérôme Schneider
|
<tr><td class="width-limited">{{ field.label_tag }}</td><td>{{ field }}
|
99 |
|
|
<button type="button"
|
100 |
|
|
class="dialog-button"
|
101 |
|
|
data-url="../../ressources/{{ field.name }}/new/ #form-content"
|
102 |
|
|
data-default-button="Ajouter"
|
103 |
|
|
data-next-url="{{ request.get_full_path }}#tab=1"
|
104 |
|
|
data-add-select="#id_transport-{{ field.name }}"
|
105 |
|
|
title="Ajouter {% if field.label.lower == "type de transport" %}un{% else %}une{% endif %} {{ field.label.lower }}">+</button></td><td>{{ field.errors }}</td></tr>
|
106 |
|
|
{% endfor %}
|
107 |
|
|
</tbody>
|
108 |
|
|
</table>
|
109 |
|
|
<br/>
|
110 |
|
|
<table>
|
111 |
|
|
<tr>
|
112 |
|
|
<td><!--<button id="attestation-transport-btn">Attestation de transport</button>--></td><td><button id="prescription-transport-btn">Prescription de transport</button></td>
|
113 |
|
|
</tr>
|
114 |
|
|
<tr>
|
115 |
|
|
<td></td>
|
116 |
|
|
<td>{% if last_prescription %} Dernière prescription le {{ last_prescription.created }}{% endif %}</td>
|
117 |
|
|
</tr>
|
118 |
|
|
</table>
|
119 |
1aac2c90
|
Jérôme Schneider
|
</div>
|
120 |
|
|
|
121 |
|
|
<div class="frame inline">
|
122 |
|
|
<h3>Suivi du patient</h3>
|
123 |
aa31cdc8
|
Jérôme Schneider
|
<table class="basic">
|
124 |
|
|
<tbody>
|
125 |
1a3d8912
|
Jérôme Schneider
|
<tr><td class="width-limited">{{ form.coordinators.label_tag }}</td><td>{{ form.coordinators }}</td><td>{{ form.coordinators.errors }}</td></tr>
|
126 |
|
|
<tr><td class="width-limited">{{ form.externaldoctor.label_tag }}</td><td>{{ form.externaldoctor }}
|
127 |
aa31cdc8
|
Jérôme Schneider
|
<button type="button"
|
128 |
|
|
class="dialog-button"
|
129 |
|
|
data-url="../../personnes/externaltherapist/new/ #form-content"
|
130 |
|
|
data-default-button="Ajouter"
|
131 |
|
|
data-next-url="{{ request.get_full_path }}#tab=1"
|
132 |
|
|
data-add-select="#id_followup-externaldoctor"
|
133 |
1a3d8912
|
Jérôme Schneider
|
title="Ajouter un médecin extérieur">+</button></td><td>{{ form.externaldoctor.errors }}</td></tr>
|
134 |
|
|
<tr><td class="width-limited">{{ form.externalintervener.label_tag }}</td><td>{{ form.externalintervener }}
|
135 |
aa31cdc8
|
Jérôme Schneider
|
<button type="button"
|
136 |
|
|
class="dialog-button"
|
137 |
|
|
data-url="../../personnes/externalworker/new/ #form-content"
|
138 |
|
|
data-default-button="Ajouter"
|
139 |
|
|
data-next-url="{{ request.get_full_path }}#tab=1"
|
140 |
|
|
data-add-select="#id_followup-externalintervener"
|
141 |
1a3d8912
|
Jérôme Schneider
|
title="Ajouter un intervenant extérieur">+</button></td><td>{{ form.externalintervener.errors }}</td></tr>
|
142 |
aa31cdc8
|
Jérôme Schneider
|
</tbody>
|
143 |
|
|
</table>
|
144 |
5a94af55
|
Jérôme Schneider
|
</div>
|
145 |
aa31cdc8
|
Jérôme Schneider
|
<input type="hidden" name="tab" value="1">
|
146 |
1a3d8912
|
Jérôme Schneider
|
<p><button class="save enable-on-change">Enregistrer</button></p>
|
147 |
1aac2c90
|
Jérôme Schneider
|
</form>
|
148 |
5497fedd
|
Mikaël Ates
|
|
149 |
aa31cdc8
|
Jérôme Schneider
|
<div class="frame">
|
150 |
5497fedd
|
Mikaël Ates
|
<h3>Mesures de protection</h3>
|
151 |
|
|
<p><button id="new-protection-btn">Nouvelle mesure de protection</button></p>
|
152 |
|
|
{% for protection in object.protectionstate_set.all %}
|
153 |
aa31cdc8
|
Jérôme Schneider
|
<div class="subframe">
|
154 |
|
|
Depuis le {{ protection.start_date }} : {{ protection.status.name }}
|
155 |
|
|
<div class="buttons">
|
156 |
|
|
<button type="button" data-id="{{ protection.id }}" class="del-protection icon-minus" title="Supprimer"></button>
|
157 |
|
|
<button type="button" data-id="{{ protection.id }}" class="update-protection-btn icon-edit" title="Modifier"></button>
|
158 |
|
|
</div>
|
159 |
|
|
<div>
|
160 |
|
|
<ul>
|
161 |
|
|
{% if protection.end_date %}<li><label>Date de fin</label> : {{ protection.end_date }}</li>{% endif %}
|
162 |
|
|
{% if protection.comment %}<li><label>Commentaire</label> : {{ protection.comment }}</li>{% endif %}
|
163 |
|
|
</ul>
|
164 |
|
|
</div>
|
165 |
|
|
</div>
|
166 |
5497fedd
|
Mikaël Ates
|
{% endfor %}
|
167 |
aa31cdc8
|
Jérôme Schneider
|
</div>
|
168 |
5497fedd
|
Mikaël Ates
|
</div>
|
169 |
54318d2c
|
Serghei MIHAI
|
{% endblock %}
|