Projet

Général

Profil

Télécharger (7,68 ko) Statistiques
| Branche: | Tag: | Révision:

calebasse / calebasse / dossiers / templates / dossiers / patientrecord_tab2_fiche_adm.html @ feffc421

1
{% load dossiers %}
2
<div id="tabs-2">
3
  <form method="post" action="tab2" id="administrative-form" class="patientrecordform">{% csrf_token %}
4
    <p><button class="save enable-on-change">Enregistrer</button></p>
5
    <div class="frame inline">
6
      <h3>État civil</h3>
7
      <table class="basic">
8
        <tbody>
9
        {% get_fieldset last_name,first_name,birthplace,birthdate,gender,nationality as id_fields from form %}
10
        {% for field in id_fields %}
11
        <tr>
12
          <td class="width-limited">{{ field.label_tag }}</td>
13
          <td>{{ field }}</td>
14
          <td>{{ field.errors }}</td>
15
        </tr>
16
        {% endfor %}
17
        </tbody>
18
      </table>
19
      <input type="hidden"  name="tab"  value="1">
20
    </div>
21

    
22
    <div class="frame inline">
23
      <h3>Inscription</h3>
24
      <table class="basic">
25
        <tbody>
26
        {% get_fieldset analysemotive,familymotive,provenance,advicegiver,provenanceplace as inscription_fields from form %}
27
        {% for field in inscription_fields %}
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

    
43
    <div class="frame inline">
44
      <h3>Sortie</h3>
45
      <table class="basic">
46
        <tbody>
47
        {% get_fieldset outmotive,outto as out_fields from form %}
48
        {% for field in out_fields %}
49
        <tr><td class="width-limited">{{ field.label_tag  }}</td><td>{{ field }}
50
            <button type="button"
51
              class="dialog-button"
52
              data-url="../../ressources/{{ field.name }}/new/ #form-content"
53
              data-default-button="Ajouter"
54
              data-next-url="{{ request.get_full_path }}#tab=1"
55
              data-add-select="#id_out-{{ field.name }}"
56
              title="Ajouter un {{ field.label.lower }}"
57
              type="button">+</button></td><td>{{ field.errors }}</td></tr>
58
        {% endfor %}
59
        </tbody>
60
      </table>
61
      <input type="hidden"  name="tab"  value="1">
62
    </div>
63

    
64
    <div class="frame inline">
65
      <h3>Famille</h3>
66
      <table class="basic">
67
        <tbody>
68
        <tr><td class="width-limited">{{ form.sibship_place.label_tag  }}</td><td>{{ form.sibship_place }}</td><td>{{ form.sibship_place.errors }}</td></tr>
69
        <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>
70
        <tr><td class="width-limited"><label>Rang (gémellité) :  </label></td><td>{{ object.twinning_rank|default_if_none:"Aucun" }}</td><td></td></tr>
71
        {% get_fieldset parental_authority,family_situation,child_custody,job_mother,job_father,rm_mother,rm_father as familly_fields from form %}
72
        {% for field in familly_fields %}
73
        <tr>
74
          <td class="width-limited">{{ field.label_tag }}</td><td>{{ field }}
75
            <button type="button"
76
              class="dialog-button"
77
              data-url="../../ressources/parentalauthoritytype/new/ #form-content"
78
              data-default-button="Ajouter"
79
              data-next-url="{{ request.get_full_path }}#tab=1"
80
              data-add-select="#id_family-parental_authority"
81
              title="Ajouter {{ field.label.lower }}">+</button></td><td>{{ field.errors }}</td>
82
        </tr>
83
        {% endfor %}
84
        <tr><td class="width-limited">{{ form.family_comment.label_tag  }}</td><td>{{ form.family_comment }}</td><td>{{ form.family_comment.errors }}</td></tr>
85
        </tbody>
86
      </table>
87
      <input type="hidden"  name="tab"  value="1">
88
    </div>
89

    
90
    <div class="frame inline">
91
      <h3>Transport</h3>
92
      <table class="basic">
93
        <tbody>
94
        {% get_fieldset transporttype,transportcompany,simple_appointment_transport,periodic_appointment_transport as transport_fields from form %}
95
        {% for field in transport_fields %}
96
        <tr><td class="width-limited">{{ field.label_tag }}</td><td>{{ field }}
97
            <button type="button"
98
              class="dialog-button"
99
              data-url="../../ressources/{{ field.name }}/new/ #form-content"
100
              data-default-button="Ajouter"
101
              data-next-url="{{ request.get_full_path }}#tab=1"
102
              data-add-select="#id_transport-{{ field.name }}"
103
              title="Ajouter {% if field.label.lower == "type de transport" %}un{% else %}une{% endif %} {{ field.label.lower }}">+</button></td><td>{{ field.errors }}</td></tr>
104
        {% endfor %}
105
        </tbody>
106
      </table>
107
      <br/>
108
      <table>
109
        <tr>
110
          <td><!--<button id="attestation-transport-btn">Attestation de transport</button>--></td><td><button id="prescription-transport-btn">Prescription de transport</button></td>
111
        </tr>
112
        <tr>
113
          <td></td>
114
          <td>{% if last_prescription %} Dernière prescription le {{ last_prescription.created }}{% endif %}</td>
115
        </tr>
116
      </table>
117
    </div>
118

    
119
    <div class="frame inline">
120
      <h3>Suivi du patient</h3>
121
      <table class="basic">
122
        <tbody>
123
        <tr><td class="width-limited">{{ form.coordinators.label_tag  }}</td><td>{{ form.coordinators }}</td><td>{{ form.coordinators.errors }}</td></tr>
124
        <tr><td class="width-limited">{{ form.externaldoctor.label_tag  }}</td><td>{{ form.externaldoctor }}
125
            <button type="button"
126
              class="dialog-button"
127
              data-url="../../personnes/externaltherapist/new/ #form-content"
128
              data-default-button="Ajouter"
129
              data-next-url="{{ request.get_full_path }}#tab=1"
130
              data-add-select="#id_followup-externaldoctor"
131
              title="Ajouter un médecin extérieur">+</button></td><td>{{ form.externaldoctor.errors }}</td></tr>
132
        <tr><td class="width-limited">{{ form.externalintervener.label_tag  }}</td><td>{{ form.externalintervener }}
133
            <button type="button"
134
              class="dialog-button"
135
              data-url="../../personnes/externalworker/new/ #form-content"
136
              data-default-button="Ajouter"
137
              data-next-url="{{ request.get_full_path }}#tab=1"
138
              data-add-select="#id_followup-externalintervener"
139
              title="Ajouter un intervenant extérieur">+</button></td><td>{{ form.externalintervener.errors }}</td></tr>
140
        </tbody>
141
      </table>
142
    </div>
143
    <input type="hidden"  name="tab"  value="1">
144
    <p><button class="save enable-on-change">Enregistrer</button></p>
145
  </form>
146

    
147
  <div class="frame">
148
    <h3>Mesures de protection</h3>
149
    <p><button id="new-protection-btn">Nouvelle mesure de protection</button></p>
150
    {% for protection in object.protectionstate_set.all %}
151
    <div class="subframe">
152
      Depuis le {{ protection.start_date }} : {{ protection.status.name }}
153
      <div class="buttons">
154
        <button type="button" data-id="{{ protection.id }}" class="del-protection icon-minus" title="Supprimer"></button>
155
        <button type="button" data-id="{{ protection.id }}" class="update-protection-btn icon-edit" title="Modifier"></button>
156
      </div>
157
      <div>
158
        <ul>
159
          {% if protection.end_date %}<li><label>Date de fin</label> : {{ protection.end_date }}</li>{% endif %}
160
          {% if protection.comment %}<li><label>Commentaire</label> : {{ protection.comment }}</li>{% endif %}
161
        </ul>
162
      </div>
163
    </div>
164
    {% endfor %}
165
  </div>
166
</div>
(15-15/29)