1
|
{% extends "dossiers/base.html" %}
|
2
|
{% load url from future %}
|
3
|
|
4
|
{% block appbar %}
|
5
|
<h2>Dossiers sur liste d'attente{% if len_patient_records %} : {{ len_patient_records }}{% endif %}</h2>
|
6
|
<a href=".">Retourner aux dossiers</a>
|
7
|
<button id='print-button' class='icon-print'>Imprimer</button>
|
8
|
{% endblock %}
|
9
|
|
10
|
{% block content %}
|
11
|
<div id="sidebar">
|
12
|
<div>
|
13
|
<form>
|
14
|
<h3>Rechercher dans les dossiers</h3>
|
15
|
<label>Nom <input name="last_name" type="text" value="{{ request.GET.last_name }}" class="focus"></label>
|
16
|
<label>Prénom <input name="first_name" type="text" value="{{ request.GET.first_name }}"></label>
|
17
|
<label>Numéro de dossier papier <input name="paper_id" type="text" value="{{ request.GET.paper_id }}"></label>
|
18
|
<label>Numéro de dossier inform. <input name="id" type="text" value="{{ request.GET.id }}"></label>
|
19
|
<label>Numéro d'assuré social <input name="social_security_id" value="{{ request.GET.social_security_id }}" type="text"></label>
|
20
|
{% if request.GET %}
|
21
|
<div class="search-reset">
|
22
|
<button id="search">Rechercher</button>
|
23
|
<button id="reset" class="icon-remove-sign" title="Réinitialiser"></button>
|
24
|
</div>
|
25
|
{% else %}
|
26
|
<button id="search">Rechercher</button>
|
27
|
{% endif %}
|
28
|
<p id="search-results" style="display: none; "></p>
|
29
|
</form>
|
30
|
</div>
|
31
|
</div>
|
32
|
<div class="content">
|
33
|
<table id="dossiers" class="main screen-only">
|
34
|
{% include "dossiers/waiting_queue_table_content.html" %}
|
35
|
</table>
|
36
|
|
37
|
<div class="pagination screen-only">
|
38
|
<span class="step-links">
|
39
|
{% if paginate_patient_records.has_previous %}
|
40
|
<a href="?{{ query }}&page={{ paginate_patient_records.previous_page_number }}">««</a>
|
41
|
{% endif %}
|
42
|
|
43
|
<span class="current">
|
44
|
page {{ paginate_patient_records.number }} de {{ paginate_patient_records.paginator.num_pages }}
|
45
|
</span>
|
46
|
|
47
|
{% if paginate_patient_records.has_next %}
|
48
|
<a href="?{{ query }}&page={{ paginate_patient_records.next_page_number }}">»»</a>
|
49
|
{% endif %}
|
50
|
</span>
|
51
|
</div>
|
52
|
|
53
|
|
54
|
|
55
|
{% if request.GET and not patient_records %}
|
56
|
<div>Pas de résultat pour votre recherche</div>
|
57
|
{% endif %}
|
58
|
|
59
|
</div>
|
60
|
{% endblock %}
|