Project

General

Profile

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

calebasse / calebasse / dossiers / templates / dossiers / index.html @ dc526631

1
{% extends "dossiers/base.html" %}
2
{% load url from future %}
3

    
4
{% block appbar %}
5
    <h2>Dossiers</h2>
6
    <a href="../..">Retourner à l'accueil</a>
7
    <button id="new-patientrecord">Nouveau dossier</button>
8
    <span>
9
      {% for name, nb in stats %}
10
    {{ name }}: <span class="num">{{ nb }}</span> {% if not forloop.last %} - {% endif %}
11
      {% endfor %}
12
    </span>
13
        <br>
14
        <br>&nbsp;
15
<!--    <div id="extra-top-links">-->
16
<!--     <a href="quotations">Listing avec quotations</a>-->
17
<!--    </div>-->
18
    </span>
19
{% endblock %}
20

    
21
{% block content %}
22
<div id="sidebar">
23
  <div>
24
    <form>
25
    <h3>Rechercher dans les dossiers</h3>
26
        <label>Nom (min. 2 caractères)<input name="last_name" type="text" value="{{ request.GET.last_name }}" class="focus"></label>
27
        <label>Prénom (min. 2 caractères) <input name="first_name" type="text" value="{{ request.GET.first_name }}"></label>
28
        <label>Numéro de dossier papier <input name="paper_id" type="text" value="{{ request.GET.paper_id }}"></label>
29
        <label>Numéro de dossier inform. <input name="id" type="text" value="{{ request.GET.id }}"></label>
30
        <label>Numéro d'assuré social <input name="social_security_id" value="{{ request.GET.social_security_id }}" type="text"></label>
31
    {% if request.GET %}
32
    <div class="search-reset">
33
    <button id="search">Rechercher</button>
34
    <button id="reset" class="icon-remove-sign" title="Réinitialiser"></button>
35
    </div>
36
    {% else %}
37
    <button id="search">Rechercher</button>
38
    {% endif %}
39
    <p id="search-results" style="display: none; "></p>
40
  </div>
41
  <div id="filtre">
42
    <h3>Filtres sur l'état</h3>
43
    {{ search_form.states }}
44
    <button id="btn_all_state">Tous</button>
45
    <button id="btn_none_state">Aucun</button>
46
<!--    <h3>Afficher les dossiers</h3>-->
47
<!--    <ul>-->
48
<!--      <li><button>En pause facturation</button></li>-->
49
<!--      <li><button>Une prolongation est nécessaire</button></li>-->
50
<!--      <li><button>Prise en charge arrivant à expiration</button></li>-->
51
<!--      <li><button>Prise en charge manquante ou expirée</button></li>-->
52
<!--      <li><button>Éligibles pour un rediagnostic</button></li>-->
53
<!--    </ul>-->
54
    </form>
55
  </div>
56
</div>
57
<div class="content">
58
  <table id="dossiers" class="main">
59
    <thead>
60
      <tr>
61
        <th colspan="2">N° dossier
62
        </th><th rowspan="2">Nom</th>
63
        <th rowspan="2">Prénom</th>
64
        <th rowspan="2">Date de naissance</th>
65
        <th rowspan="2">État du dossier</th>
66
        <th rowspan="2">Dernier acte</th>
67
        <th rowspan="2">Prochain rendez-vous</th>
68
      </tr>
69
      <tr>
70
        <th>papier</th>
71
        <th>inform.</th>
72
      </tr>
73
    </thead>
74
    <tbody>
75

    
76
      {% for patient_record in patient_records %}
77
      <tr style="display: table-row;" class="pr-line {{ patient_record.state_class }}" data-link="{{ patient_record.object.id }}/view">
78
          <td>{{ patient_record.object.paper_id|default_if_none:"" }} </td>
79
          <td>{{ patient_record.object.id }}</td>
80
          <td>{% if patient_record.object.confidential %}<span title="Dossier confidentiel" class="icon-lock" style="margin-right: 5px;"></span>{% endif %}<span class="lastname">{{ patient_record.object.last_name }}</span></td>
81
          <td>{{ patient_record.object.first_name }}</td>
82
          <td>{{ patient_record.object.birthdate|date:"d/m/Y" }}</td>
83
          <td class="{{ patient_record.state_class }}">{{ patient_record.state }}</td>
84
          <td>
85
              {% if patient_record.last_rdv %}
86
              {% if patient_record.last_rdv.is_absent %}<span style="font-weight: bold;">{% endif %}
87
              {{ patient_record.last_rdv.start_datetime|date:"d/m/Y H:i" }}<br>
88
              {% for participant in patient_record.last_rdv.participants %}
89
              <span class="lastname">{{ participant.last_name }}</span> -
90
              {% endfor %}
91
              {{ patient_record.last_rdv.act_type }}
92
              {% if patient_record.last_rdv.is_absent %} ({{ patient_record.last_rdv.act_state }})</span>{% endif %}
93
              {% endif %}
94
          </td>
95
          <td>
96
              {% if patient_record.next_rdv %}
97
              {% if patient_record.next_rdv.is_absent %}<span style="font-weight: bold;">{% endif %}
98
              {{ patient_record.next_rdv.start_datetime|date:"d/m/Y H:i" }}<br>
99
              {% for participant in patient_record.next_rdv.participants.all %}
100
              <span class="lastname">{{ participant.last_name }}</span> -
101
              {% endfor %}
102
              {{ patient_record.next_rdv.act_type }}
103
              {% if patient_record.next_rdv.is_absent %} ({{ patient_record.next_rdv.act.get_state }})</span>{% endif %}
104
              {% endif %}
105
          </td>
106
      </tr>
107
      {% endfor %}
108

    
109

    
110
    </tbody>
111
  </table>
112

    
113
{% if request.GET %}
114
<div class="pagination">
115
    <span class="step-links">
116
        {% if paginate_patient_records.has_previous %}
117
            <a href="?{{ query }}&page={{ paginate_patient_records.previous_page_number }}">««</a>
118
        {% endif %}
119

    
120
        <span class="current">
121
            page {{ paginate_patient_records.number }} de {{ paginate_patient_records.paginator.num_pages }}
122
        </span>
123

    
124
        {% if paginate_patient_records.has_next %}
125
            <a href="?{{ query }}&page={{ paginate_patient_records.next_page_number }}">»»</a>
126
        {% endif %}
127
    </span>
128
</div>
129
{% endif %}
130

    
131

    
132
  {% if not request.GET %}
133
  <div class="big-msg-info">
134
    Utilisez le formulaire de recherche sur la gauche de l'écran pour afficher
135
    les dossiers correspondants.
136
  </div>
137
  {% elif not patient_records %}
138
  <div>Pas de résultat pour votre recherche</div>
139
  {% endif %}
140

    
141
</div>
142
{% endblock %}
143

    
144
{% block dialogs %}
145
  <div id="dossier-dlg" style="display: none;">
146

    
147
  <div id="homonyms" style="display: none;">
148
   <p>Attention, il existe des homonymes; cliquez sur le bouton pour consulter
149
      le dossier correspondant. Si vous voulez confirmer la création d'un nouveau
150
      dossier, cliquez sur le bouton 'Ajouter'.</p>
151
   <button>Doe James</button><br/>
152
   <button>Doe Dolassaumure</button>
153
  </div>
154
  </div>
155
{% endblock %}
(6-6/20)