Projet

Général

Profil

Télécharger (4,47 ko) Statistiques
| Branche: | Tag: | Révision:

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

1
{% extends "dossiers/base.html" %}
2
{% load url from future %}
3
{% load dossiers %}
4
{% 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

    
9
{% block extrascripts %}
10
{{ block.super }}
11
<script src="{{ STATIC_URL }}js/jquery.parse-url.js"></script>
12
<script src="{{ STATIC_URL }}js/calebasse.dossiers.js"></script>
13
{% endblock %}
14

    
15
{% block title %}{{ object.last_name }} {{ object.first_name }}{% if object.paper_id %} - Dossier {{ object.paper_id}}{% endif %}{% endblock %}
16

    
17
{% block appbar %}
18
<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
<span id="ajax-redirect" data-url="{{ object.id }}/view"/>
20
<a href="..">Retourner aux dossiers</a>
21
{% if 'validator' in role %}{% if object.can_be_deleted %}<button type="button" id="patientrecord-delete">Supprimer</button>{% endif %}{% endif %}
22
{% endblock %}
23

    
24
{% block content %}
25
<div id="tabs">
26
  <ul>
27
    <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
    {% elif object.service.slug == "sessad-ted" or object.service.slug == "sessad-dys" %}
39
    <li><a data-id="3" href="tab4" class="atabs">Notifications</a></li>
40
    {% else %}
41
    <li style="display: none;"><a data-id="3" href="tab4" class="atabs">Notifications</a></li>
42
    {% endif %}
43
    <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
  </ul>
48
</div>
49
{% endblock %}
50

    
51
{% block dialogs %}
52
<div id="ajax-dlg" style="display: none;"></div>
53
<div id="change-record" style="display: none;" data-id="{{ object.id }}" data-service-id="{{ service_id }}">
54
 </div>
55

    
56
  <div id="dossier-histo-dlg" style="display: none;">
57
   <dl>
58
    {% for state in states %}
59
    <dt><b>{{ state.date_selected|date:"d/m/Y" }}</b> <!--<small>(date info: {{ state.created|date:"d/m/Y" }})</small>-->
60
      <button data-id="{{ state.id }}" class="update-patient-state-btn icon-edit" title="Modifier"></button>
61
      {% if states|length > 1 %}<button data-id="{{ state.id }}" class="del-patient-state-btn icon-remove"></button>{% endif %}
62
    </dt>
63
    <dd>
64
    <p><b>{{ state.status.name }}</b>{% if state.comment %}; <label>commentaire:</label> {{ state.comment }}{% endif %}</p>
65
    </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
   <input id="id_date_{{state.id}}" class="date" name="date" value="{{ state.created|date:"d/m/Y" }}"/>
75
   </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
    </dd>
84
    {% endfor%}
85
   </dl>
86
  </div>
87

    
88

    
89

    
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

    
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 %}
(23-23/29)