Project

General

Profile

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

calebasse / calebasse / dossiers / templates / dossiers / index.html @ 7a3e3acd

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 }}"></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"><span title="Information à propos de la prise en charge">I</span> / <span title="Dossier en pause facturation">F</span></th>
67
        <th rowspan="2">Dernier acte</th>
68
        <th rowspan="2">Prochain rendez-vous</th>
69
      </tr>
70
      <tr>
71
        <th>papier</th>
72
        <th>inform.</th>
73
      </tr>
74
    </thead>
75
    <tbody>
76

    
77
      {% for patient_record in patient_records %}
78
      <tr style="display: table-row;" class="pr-line {{ patient_record.state_class }}" data-link="{{ patient_record.object.id }}/view">
79
          <td>{{ patient_record.object.paper_id|default_if_none:"" }}</td>
80
          <td>{{ patient_record.object.id }}</td>
81
          <td><span class="lastname">{{ patient_record.object.last_name }}</span></td>
82
          <td>{{ patient_record.object.first_name }}</td>
83
          <td>{{ patient_record.object.birthdate|date:"d/m/Y" }}</td>
84
          <td class="{{ patient_record.state_class }}">{{ patient_record.state }}</td>
85
          <td>{% if patient_record.object.pause %}F{% endif %}</td>
86
          <td>
87
              {% if patient_record.last_rdv %}
88
              {{ patient_record.last_rdv.start_datetime|date:"d/m/Y h:i" }}<br>
89
              {% for participant in patient_record.last_rdv.participants %}
90
              <span class="lastname">{{ participant.last_name }}</span> -
91
              {% endfor %}
92
              {{ patient_record.last_rdv.act_type }}
93
              {% endif %}
94
          </td>
95
          <td>
96
              {% if patient_record.next_rdv %}
97
              {{ patient_record.next_rdv.start_datetime|date:"d/m/Y h:i" }}<br>
98
              {% for participant in patient_record.next_rdv.participants %}
99
              <span class="lastname">{{ participant.last_name }}</span> -
100
              {% endfor %}
101
              {{ patient_record.next_rdv.act_type }}
102
              {% endif %}
103
          </td>
104
      </tr>
105
      {% endfor %}
106

    
107

    
108
    </tbody>
109
  </table>
110

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

    
118
        <span class="current">
119
            page {{ patient_records.number }} de {{ patient_records.paginator.num_pages }}
120
        </span>
121

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

    
129

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

    
139
</div>
140
{% endblock %}
141

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

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