Projet

Général

Profil

Télécharger (6,03 ko) Statistiques
| Branche: | Tag: | Révision:

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

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
{% endblock %}
16

    
17
{% block content %}
18
<div id="sidebar">
19
  <div>
20
    <form>
21
    <h3>Rechercher dans les dossiers</h3>
22
        <label>Nom (min. 2 caractères)<input name="last_name" type="text" value="{{ request.GET.last_name }}" class="focus"></label>
23
        <label>Prénom (min. 2 caractères) <input name="first_name" type="text" value="{{ request.GET.first_name }}"></label>
24
        <label>Numéro de dossier papier <input name="paper_id" type="text" value="{{ request.GET.paper_id }}"></label>
25
        <label>Numéro de dossier inform. <input name="id" type="text" value="{{ request.GET.id }}"></label>
26
        <label>Numéro d'assuré social <input name="social_security_id" value="{{ request.GET.social_security_id }}" type="text"></label>
27
    {% if request.GET %}
28
    <div class="search-reset">
29
    <button id="search">Rechercher</button>
30
    <button id="reset" class="icon-remove-sign" title="Réinitialiser"></button>
31
    </div>
32
    {% else %}
33
    <button id="search">Rechercher</button>
34
    {% endif %}
35
    <p id="search-results" style="display: none; "></p>
36
  </div>
37
  <div id="filtre">
38
    <h3>Filtres sur l'état</h3>
39
    {{ search_form.states }}
40
    <button id="btn_all_state">Tous</button>
41
    <button id="btn_none_state">Aucun</button>
42
<!--    <h3>Afficher les dossiers</h3>-->
43
<!--    <ul>-->
44
<!--      <li><button>En pause facturation</button></li>-->
45
<!--      <li><button>Une prolongation est nécessaire</button></li>-->
46
<!--      <li><button>Prise en charge arrivant à expiration</button></li>-->
47
<!--      <li><button>Prise en charge manquante ou expirée</button></li>-->
48
<!--      <li><button>Éligibles pour un rediagnostic</button></li>-->
49
<!--    </ul>-->
50
    </form>
51
  </div>
52
    <br>
53
  <div>
54
    <a href="quotations">Quotations et déficiences</a><br/>
55
    <a href="waiting-queue">Liste d'attente</a>
56
  </div>
57
</div>
58
<div class="content">
59
  <table id="dossiers" class="main">
60
    <thead>
61
      <tr>
62
        <th colspan="2">N° dossier
63
        </th><th rowspan="2">Nom</th>
64
        <th rowspan="2">Prénom</th>
65
        <th rowspan="2">Date de naissance</th>
66
        <th rowspan="2">État du dossier</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>{% 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>
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>
86
              {% if patient_record.last_rdv %}
87
              {% if patient_record.last_rdv.is_absent %}<span style="font-weight: bold;">{% endif %}
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
              {% if patient_record.last_rdv.is_absent %} ({{ patient_record.last_rdv.act_state }})</span>{% endif %}
94
              {% endif %}
95
          </td>
96
          <td>
97
              {% if patient_record.next_rdv %}
98
              {% if patient_record.next_rdv.is_absent %}<span style="font-weight: bold;">{% endif %}
99
              {{ patient_record.next_rdv.start_datetime|date:"d/m/Y H:i" }}<br>
100
              {% for participant in patient_record.next_rdv.participants.all %}
101
              <span class="lastname">{{ participant.last_name }}</span> -
102
              {% endfor %}
103
              {{ patient_record.next_rdv.act_type }}
104
              {% if patient_record.next_rdv.is_absent %} ({{ patient_record.next_rdv.act.get_state }})</span>{% endif %}
105
              {% endif %}
106
          </td>
107
      </tr>
108
      {% endfor %}
109

    
110

    
111
    </tbody>
112
  </table>
113

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

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

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

    
132

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

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

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

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