Project

General

Profile

Download (11.8 KB) Statistics
| Branch: | Tag: | Revision:

calebasse / calebasse / dossiers / templates / dossiers / patientrecord_tab2_fiche_adm.html @ 78bae9a3

1
<div id="tabs-2">
2
  <form method="post" action="tab2" id="id-form" class="patientrecordform">{% csrf_token %}
3
    <div class="frame inline">
4
      <h3>État civil</h3>
5
      <button class="save"></button>
6
      <table class="basic">
7
        <tbody>
8
        <tr><td class="width-limited">{{ forms.id.last_name.label_tag }}</td><td><span class="lastname">{{ forms.id.last_name }}</span></td><td>{{ forms.id.last_name.errors }}</td></tr>
9
        <tr><td class="width-limited">{{ forms.id.first_name.label_tag }}</td><td>{{ forms.id.first_name }}</td><td>{{ forms.id.first_name.errors }}</td></tr>
10
        <tr><td class="width-limited">{{ forms.id.birthplace.label_tag }}</td><td>{{ forms.id.birthplace }}</td><td>{{ forms.id.birthplace.errors }}</td></tr>
11
        <tr><td class="width-limited">{{ forms.id.birthdate.label_tag }}</td><td>{{ forms.id.birthdate }}</td><td>{{ forms.id.birthdate.errors }}</td></tr>
12
        <tr><td class="width-limited">{{ forms.id.gender.label_tag }}</td><td>{{ forms.id.gender }}</td><td>{{ forms.id.gender.errors }}</td></tr>
13
        <tr><td class="width-limited">{{ forms.id.nationality.label_tag }}</td><td>{{ forms.id.nationality }}</td><td>{{ forms.id.nationality.errors }}</td></tr>
14
        </tbody>
15
      </table>
16
      <input type="hidden"  name="tab"  value="1">
17
    </div>
18
  </form>
19

    
20
  <form method="post" action="tab2" id="inscription-form" class="patientrecordform">
21
    {% csrf_token %}
22
    <div class="frame inline">
23
      <h3>Inscription</h3>
24
      <button class="save"></button>
25
      <table class="basic">
26
        <tbody>
27
        {% for field in forms.inscription %}
28
        <tr><td class="width-limited">{{ field.label_tag  }}</td><td>{{ field }}
29
            <button type="button"
30
              class="dialog-button"
31
              data-url="../../ressources/{{ field.name }}/new/ #form-content"
32
              data-default-button="Ajouter"
33
              data-next-url="{{ request.get_full_path }}#tab=1"
34
              data-add-select="#id_inscription-{{ field.name }}"
35
              title="Ajouter un {{ field.label.lower }}"
36
              type="button">+</button></td><td>{{ field.errors }}</td></tr>
37
        {% endfor %}
38
        </tbody>
39
      </table>
40
      <input type="hidden"  name="tab"  value="1">
41
    </div>
42
  </form>
43

    
44
  <form method="post" action="tab2" id="out-form" class="patientrecordform">
45
    {% csrf_token %}
46
    <div class="frame inline">
47
      <h3>Sortie</h3>
48
      <button class="save"></button>
49
      <table class="basic">
50
        <tbody>
51
        {% for field in forms.out %}
52
        <tr><td class="width-limited">{{ field.label_tag  }}</td><td>{{ field }}
53
            <button type="button"
54
              class="dialog-button"
55
              data-url="../../ressources/{{ field.name }}/new/ #form-content"
56
              data-default-button="Ajouter"
57
              data-next-url="{{ request.get_full_path }}#tab=1"
58
              data-add-select="#id_out-{{ field.name }}"
59
              title="Ajouter un {{ field.label.lower }}"
60
              type="button">+</button></td><td>{{ field.errors }}</td></tr>
61
        {% endfor %}
62
        </tbody>
63
      </table>
64
      <input type="hidden"  name="tab"  value="1">
65
    </div>
66
  </form>
67

    
68
  <form method="post" action="tab2" id="family-form" class="patientrecordform">
69
    {% csrf_token %}
70
    <div class="frame inline">
71
      <h3>Famille</h3>
72
      <button class="save"></button>
73
      <table class="basic">
74
        <tbody>
75
        <tr><td class="width-limited">{{ forms.family.sibship_place.label_tag  }}</td><td>{{ forms.family.sibship_place }}</td><td>{{ forms.family.sibship_place.errors }}</td></tr>
76
        <tr><td class="width-limited">{{ forms.family.nb_children_family.label_tag  }}</td><td>{{ forms.family.nb_children_family }}</td><td>{{ forms.family.nb_children_family.errors }}</td></tr>
77
        <tr><td class="width-limited"><label>Rang (gémellité) :  </label></td><td>{{ object.twinning_rank|default_if_none:"Aucun" }}</td><td></td></tr>
78
        <tr><td class="width-limited">{{ forms.family.parental_authority.label_tag  }}</td><td>{{ forms.family.parental_authority }}
79
            <button type="button"
80
              class="dialog-button"
81
              data-url="../../ressources/parentalauthoritytype/new/ #form-content"
82
              data-default-button="Ajouter"
83
              data-next-url="{{ request.get_full_path }}#tab=1"
84
              data-add-select="#id_family-parental_authority"
85
              title="Ajouter un type d'autorité parentale">+</button></td><td>{{ forms.family.parental_authority.errors }}</td></tr>
86
        <tr><td class="width-limited">{{ forms.family.family_situation.label_tag  }}</td><td>{{ forms.family.family_situation }}
87
            <button type="button"
88
              class="dialog-button"
89
              data-url="../../ressources/familysituationtype/new/ #form-content"
90
              data-default-button="Ajouter"
91
              data-next-url="{{ request.get_full_path }}#tab=1"
92
              data-add-select="#id_family-family_situation"
93
              title="Ajouter un type de situation familiale">+</button></td><td>{{ forms.family.family_situation.errors }}</td></tr>
94
        <tr><td class="width-limited">{{ forms.family.child_custody.label_tag  }}</td><td>{{ forms.family.child_custody }}
95
            <button type="button"
96
              class="dialog-button"
97
              data-url="../../ressources/parentalcustodytype/new/ #form-content"
98
              data-default-button="Ajouter"
99
              data-next-url="{{ request.get_full_path }}#tab=1"
100
              data-add-select="#id_family-child_custody"
101
              title="Ajouter un type de garde parentale">+</button></td><td>{{ forms.family.child_custody.errors }}</td></tr>
102
        <tr><td class="width-limited">{{ forms.family.job_mother.label_tag  }}</td><td>{{ forms.family.job_mother }}
103
            <button type="button"
104
              class="dialog-button"
105
              data-url="../../ressources/job/new/ #form-content"
106
              data-default-button="Ajouter"
107
              data-next-url="{{ request.get_full_path }}#tab=1"
108
              data-add-select="#id_family-job_mother"
109
              title="Ajouter un type de profession">+</button></td><td>{{ forms.family.job_mother.errors }}</td></tr>
110
        <tr><td class="width-limited">{{ forms.family.job_father.label_tag  }}</td><td>{{ forms.family.job_father }}
111
            <button type="button"
112
              class="dialog-button"
113
              data-url="../../ressources/job/new/ #form-content"
114
              data-default-button="Ajouter"
115
              data-next-url="{{ request.get_full_path }}#tab=1"
116
              data-add-select="#id_family-job_father"
117
              title="Ajouter un type de profession">+</button></td><td>{{ forms.family.job_father.errors }}</td></tr>
118
        <tr><td class="width-limited">{{ forms.family.rm_mother.label_tag  }}</td><td>{{ forms.family.rm_mother }}
119
            <button type="button"
120
              class="dialog-button"
121
              data-url="../../ressources/maritalstatustype/new/ #form-content"
122
              data-default-button="Ajouter"
123
              data-next-url="{{ request.get_full_path }}#tab=1"
124
              data-add-select="#id_family-rm_mother"
125
              title="Ajouter un type de régime">+</button></td><td>{{ forms.family.rm_mother.errors }}</td></tr>
126
        <tr><td class="width-limited">{{ forms.family.rm_father.label_tag  }}</td><td>{{ forms.family.rm_father }}
127
            <button type="button"
128
              class="dialog-button"
129
              data-url="../../ressources/maritalstatustype/new/ #form-content"
130
              data-default-button="Ajouter"
131
              data-next-url="{{ request.get_full_path }}#tab=1"
132
              data-add-select="#id_family-rm_father"
133
              title="Ajouter un type de régime">+</button></td><td>{{ forms.family.rm_father.errors }}</td></tr>
134
        <tr><td class="width-limited">{{ forms.family.family_comment.label_tag  }}</td><td>{{ forms.family.family_comment }}</td><td>{{ forms.family.family_comment.errors }}</td></tr>
135
        </tbody>
136
      </table>
137
      <input type="hidden"  name="tab"  value="1">
138
    </div>
139
  </form>
140

    
141
  <form method="post" action="tab2" id="transport-form" class="patientrecordform">
142
    {% csrf_token %}
143
    <div class="frame inline">
144
      <h3>Transport</h3>
145
      <button class="save"></button>
146
      <table class="basic">
147
        <tbody>
148
        {% for field in forms.transport %}
149
        <tr><td class="width-limited">{{ field.label_tag }}</td><td>{{ field }}
150
            <button type="button"
151
              class="dialog-button"
152
              data-url="../../ressources/{{ field.name }}/new/ #form-content"
153
              data-default-button="Ajouter"
154
              data-next-url="{{ request.get_full_path }}#tab=1"
155
              data-add-select="#id_transport-{{ field.name }}"
156
              title="Ajouter {% if field.label.lower == "type de transport" %}un{% else %}une{% endif %} {{ field.label.lower }}">+</button></td><td>{{ field.errors }}</td></tr>
157
        {% endfor %}
158
        </tbody>
159
      </table>
160
      <br/>
161
      <table>
162
        <tr>
163
          <td><!--<button id="attestation-transport-btn">Attestation de transport</button>--></td><td><button id="prescription-transport-btn">Prescription de transport</button></td>
164
        </tr>
165
        <tr>
166
          <td></td>
167
          <td>{% if last_prescription %} Dernière prescription le {{ last_prescription.created }}{% endif %}</td>
168
        </tr>
169
      </table>
170
    </div>
171
  </form>
172

    
173
  <form method="post" action="tab2" id="followup-form" class="patientrecordform">{% csrf_token %}
174
    <div class="frame inline">
175
      <h3>Suivi du patient</h3>
176
      <button class="save"></button>
177
      <table class="basic">
178
        <tbody>
179
        <tr><td class="width-limited">{{ forms.followup.coordinators.label_tag  }}</td><td>{{ forms.followup.coordinators }}</td><td>{{ forms.followup.coordinators.errors }}</td></tr>
180
        <tr><td class="width-limited">{{ forms.followup.externaldoctor.label_tag  }}</td><td>{{ forms.followup.externaldoctor }}
181
            <button type="button"
182
              class="dialog-button"
183
              data-url="../../personnes/externaltherapist/new/ #form-content"
184
              data-default-button="Ajouter"
185
              data-next-url="{{ request.get_full_path }}#tab=1"
186
              data-add-select="#id_followup-externaldoctor"
187
              title="Ajouter un médecin extérieur">+</button></td><td>{{ forms.followup.externaldoctor.errors }}</td></tr>
188
        <tr><td class="width-limited">{{ forms.followup.externalintervener.label_tag  }}</td><td>{{ forms.followup.externalintervener }}
189
            <button type="button"
190
              class="dialog-button"
191
              data-url="../../personnes/externalworker/new/ #form-content"
192
              data-default-button="Ajouter"
193
              data-next-url="{{ request.get_full_path }}#tab=1"
194
              data-add-select="#id_followup-externalintervener"
195
              title="Ajouter un intervenant extérieur">+</button></td><td>{{ forms.followup.externalintervener.errors }}</td></tr>
196
        </tbody>
197
      </table>
198
    </div>
199
    <input type="hidden"  name="tab"  value="1">
200
  </form>
201

    
202
  <div class="frame">
203
    <h3>Mesures de protection</h3>
204
    <p><button id="new-protection-btn">Nouvelle mesure de protection</button></p>
205
    {% for protection in object.protectionstate_set.all %}
206
    <div class="subframe">
207
      Depuis le {{ protection.start_date }} : {{ protection.status.name }}
208
      <div class="buttons">
209
        <button type="button" data-id="{{ protection.id }}" class="del-protection icon-minus" title="Supprimer"></button>
210
        <button type="button" data-id="{{ protection.id }}" class="update-protection-btn icon-edit" title="Modifier"></button>
211
      </div>
212
      <div>
213
        <ul>
214
          {% if protection.end_date %}<li><label>Date de fin</label> : {{ protection.end_date }}</li>{% endif %}
215
          {% if protection.comment %}<li><label>Commentaire</label> : {{ protection.comment }}</li>{% endif %}
216
        </ul>
217
      </div>
218
    </div>
219
    {% endfor %}
220
  </div>
221
</div>
(15-15/29)