1
|
{% extends 'dossiers/patientrecord_tab.html' %}
|
2
|
{% load dossiers %}
|
3
|
{% block content %}
|
4
|
<div id="tabs-2">
|
5
|
<form method="post" action="tab2" id="administrative-form" class="patientrecordform">{% csrf_token %}
|
6
|
<p><button class="save enable-on-change">Enregistrer</button></p>
|
7
|
<div class="frame inline">
|
8
|
<h3>État civil</h3>
|
9
|
<table class="basic">
|
10
|
<tbody>
|
11
|
{% 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
|
</tbody>
|
20
|
</table>
|
21
|
<input type="hidden" name="tab" value="1">
|
22
|
</div>
|
23
|
|
24
|
<div class="frame inline">
|
25
|
<h3>Inscription</h3>
|
26
|
<table class="basic">
|
27
|
<tbody>
|
28
|
{% 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
|
<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
|
|
45
|
<div class="frame inline">
|
46
|
<h3>Sortie</h3>
|
47
|
<table class="basic">
|
48
|
<tbody>
|
49
|
{% get_fieldset outmotive,outto as out_fields from form %}
|
50
|
{% for field in out_fields %}
|
51
|
<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
|
|
66
|
<div class="frame inline">
|
67
|
<h3>Famille</h3>
|
68
|
<table class="basic">
|
69
|
<tbody>
|
70
|
<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
|
<tr><td class="width-limited"><label>Rang (gémellité) : </label></td><td>{{ object.twinning_rank|default_if_none:"Aucun" }}</td><td></td></tr>
|
73
|
{% 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
|
<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
|
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
|
</tbody>
|
88
|
</table>
|
89
|
<input type="hidden" name="tab" value="1">
|
90
|
</div>
|
91
|
|
92
|
<div class="frame inline">
|
93
|
<h3>Transport</h3>
|
94
|
<table class="basic">
|
95
|
<tbody>
|
96
|
{% get_fieldset transporttype,transportcompany,simple_appointment_transport,periodic_appointment_transport as transport_fields from form %}
|
97
|
{% for field in transport_fields %}
|
98
|
<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
|
</div>
|
120
|
|
121
|
<div class="frame inline">
|
122
|
<h3>Suivi du patient</h3>
|
123
|
<table class="basic">
|
124
|
<tbody>
|
125
|
<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
|
<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
|
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
|
<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
|
title="Ajouter un intervenant extérieur">+</button></td><td>{{ form.externalintervener.errors }}</td></tr>
|
142
|
</tbody>
|
143
|
</table>
|
144
|
</div>
|
145
|
<input type="hidden" name="tab" value="1">
|
146
|
<p><button class="save enable-on-change">Enregistrer</button></p>
|
147
|
</form>
|
148
|
|
149
|
<div class="frame">
|
150
|
<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
|
<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
|
{% endfor %}
|
167
|
</div>
|
168
|
</div>
|
169
|
{% endblock %}
|