Project

General

Profile

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

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

1 f142f9f7 Jérôme Schneider
{% extends "dossiers/base.html" %}
2
{% load url from future %}
3 b773431d Jérôme Schneider
{% load dossiers %}
4 505f729d Serghei MIHAI
{% block extrastyles %}
5
{{ block.super }}
6
<link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}filter-widget/css/filter-widget.css"/>
7
{% endblock %}
8 f142f9f7 Jérôme Schneider
9 11f94c15 Frédéric Péters
{% block extrascripts %}
10 505f729d Serghei MIHAI
{{ block.super }}
11 11f94c15 Frédéric Péters
<script src="{{ STATIC_URL }}js/jquery.parse-url.js"></script>
12
<script src="{{ STATIC_URL }}js/calebasse.dossiers.js"></script>
13
{% endblock %}
14
15 603eec19 Mikaël Ates
{% block title %}{{ object.last_name }} {{ object.first_name }}{% if object.paper_id %} - Dossier {{ object.paper_id}}{% endif %}{% endblock %}
16 11f94c15 Frédéric Péters
17 f142f9f7 Jérôme Schneider
{% block appbar %}
18 636dcdba Jérôme Schneider
<h2><strong>{% if current_state.status.type == 'CLOS' %}<span class="highlight">{% endif %}<span class="lastname">{{ object.last_name }}</span> {{ object.first_name }}{% if object.paper_id %} - Dossier {{ object.paper_id}}{% endif %}{% if current_state.status.type == 'CLOS' %} clos</span>{% endif %}</strong></h2>
19 77c6fe82 Frédéric Péters
<span id="ajax-redirect" data-url="{{ object.id }}/view"/>
20 f142f9f7 Jérôme Schneider
<a href="..">Retourner aux dossiers</a>
21 3a4d550f Mikaël Ates
{% if 'validator' in role %}{% if object.can_be_deleted %}<button type="button" id="patientrecord-delete">Supprimer</button>{% endif %}{% endif %}
22 f142f9f7 Jérôme Schneider
{% endblock %}
23
24
{% block content %}
25
<div id="tabs">
26
  <ul>
27 aa31cdc8 Jérôme Schneider
    <li id="tab1">
28
    <a data-id="0" href="tab1" class="atabs">Général</a>
29
    </li>
30
    <li id="tab2">
31
      <a data-id="1" href="tab2" class="atabs">Fiche administrative</a>
32
    </li>
33
    <li id="tab3">
34
      <a data-id="2" href="tab3" class="atabs">Adresses / contacts</a>
35
    </li>
36
    {% if object.service.slug == "cmpp" %}
37
    <li><a data-id="3" href="tab4" class="atabs">Prise en charge</a></li>
38 fd37865a Jérôme Schneider
    {% elif object.service.slug == "sessad-ted" or object.service.slug == "sessad-dys" %}
39 aa31cdc8 Jérôme Schneider
    <li><a data-id="3" href="tab4" class="atabs">Notifications</a></li>
40 07f0a188 Jérôme Schneider
    {% else %}
41 aa31cdc8 Jérôme Schneider
    <li style="display: none;"><a data-id="3" href="tab4" class="atabs">Notifications</a></li>
42 dfd4bd12 Jérôme Schneider
    {% endif %}
43 aa31cdc8 Jérôme Schneider
    <li><a data-id="4" class="atabs" href="tab5">Actes passés</a>
44
    <li><a data-id="5" class="atabs" href="tab6">Prochains rendez-vous</a>
45
    <li><a data-id="6" class="atabs" href="tab7">Socialisation</a>
46
    <li><a data-id="7" class="atabs" href="tab8">Données à caractère médical</a>
47 f142f9f7 Jérôme Schneider
  </ul>
48
</div>
49
{% endblock %}
50
51 f78e473c Jérôme Schneider
{% block dialogs %}
52 4e9e8ae5 Jérôme Schneider
<div id="ajax-dlg" style="display: none;"></div>
53 54f8d003 Jérôme Schneider
<div id="change-record" style="display: none;" data-id="{{ object.id }}" data-service-id="{{ service_id }}">
54 f78e473c Jérôme Schneider
 </div>
55
56
  <div id="dossier-histo-dlg" style="display: none;">
57
   <dl>
58 96b98b15 Jérôme Schneider
    {% for state in states %}
59 6bfd723e Mikaël Ates
    <dt><b>{{ state.date_selected|date:"d/m/Y" }}</b> <!--<small>(date info: {{ state.created|date:"d/m/Y" }})</small>-->
60 84416ac3 Frédéric Péters
      <button data-id="{{ state.id }}" class="update-patient-state-btn icon-edit" title="Modifier"></button>
61 1f5cae7f Jérôme Schneider
      {% if states|length > 1 %}<button data-id="{{ state.id }}" class="del-patient-state-btn icon-remove"></button>{% endif %}
62 84416ac3 Frédéric Péters
    </dt>
63 f78e473c Jérôme Schneider
    <dd>
64 6bfd723e Mikaël Ates
    <p><b>{{ state.status.name }}</b>{% if state.comment %}; <label>commentaire:</label> {{ state.comment }}{% endif %}</p>
65 4a0ff5ea Frédéric Péters
    </dd>
66
    <dd class="edit-histo-item" style="display: none;">
67
68
<form action="{{ request.get_full_path }}/../update-state" method="post">
69
  <input type="hidden" name="state_id" value="{{ state.id }}"/>
70
  {% csrf_token %}
71
   <p>
72
   <label for="id_date">Date :</label>
73
   {{ form.date.errors }}
74 8f9501a3 Serghei MIHAI
   <input id="id_date_{{state.id}}" class="date" name="date" value="{{ state.created|date:"d/m/Y" }}"/>
75 4a0ff5ea Frédéric Péters
   </p>
76
   <p>
77
    <label for="id_comment">Commentaire :</label>
78
    <textarea id="id_comment" style="width: 90%;" name="comment">{% if state.comment %}{{ state.comment }}{% endif %}</textarea>
79
   </p>
80
   <button>Modifier</button>
81
 </form>
82
83 f78e473c Jérôme Schneider
    </dd>
84 96b98b15 Jérôme Schneider
    {% endfor%}
85 f78e473c Jérôme Schneider
   </dl>
86
  </div>
87
88 4e9e8ae5 Jérôme Schneider
89 f78e473c Jérôme Schneider
90
  <div id="add-prise-en-charge-dlg" style="display: none;">
91
   <div>
92
    <label for="id_partir">À partir du :</label>
93
    <input id="id_partir" class="partir" name="partir" size="10" value="11/06/2012"/>
94
   </div>
95
   <div>
96
    <label for="id_pour">Pour :</label>
97
    <input id="id_pour" class="pour" name="pour" size="4" value="30"/> séances
98
   </div>
99
  </div>
100
101
  <div id="add-prolongation-dlg" style="display: none;">
102
   <div>
103
    <label for="id_pour">Pour :</label>
104
    <input id="id_pour" class="pour" name="pour" size="4" value="10"/> actes
105
   </div>
106
  </div>
107 eb36210d Mikaël Ates
108
<div id="finaccueil-patientrecord-dialog" title="Patient en fin d'accueil">
109
  <div id="finaccueil-patientrecord-dialog-content">
110
  </div>
111
  <form method="post" action="finaccueil-patientrecord/">
112
    {% csrf_token %}
113
    <input type="hidden" name="Close" value="1">
114
  </form>
115
</div>
116
117
{% endblock %}