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