1
|
{% extends "dossiers/base.html" %}
|
2
|
{% load url from future %}
|
3
|
|
4
|
{% block appbar %}
|
5
|
<h2>Dossiers</h2>
|
6
|
<a href=".">Retourner aux dossiers</a>
|
7
|
<button id='print-button'>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>Sans quotations <input name="without_quotations" type="checkbox"
|
16
|
{% if request.GET.without_quotations == 'on' %}checked="checked"{% endif %}/></label>
|
17
|
|
18
|
<h3>Période</h3>
|
19
|
Du
|
20
|
<label><input name="date_actes_start" type="text" value="{{ request.GET.date_actes_start }}"></label>
|
21
|
Au
|
22
|
<label><input name="date_actes_end" type="text" value="{{ request.GET.date_actes_end }}"></label>
|
23
|
{% if request.GET %}
|
24
|
<div class="search-reset">
|
25
|
<button id="search">Rechercher</button>
|
26
|
<button id="reset" class="icon-remove-sign" title="Réinitialiser"></button>
|
27
|
</div>
|
28
|
{% else %}
|
29
|
<button id="search">Rechercher</button>
|
30
|
{% endif %}
|
31
|
<p id="search-results" style="display: none; "></p>
|
32
|
</div>
|
33
|
<div id="filtre">
|
34
|
<h3>Filtres sur l'état</h3>
|
35
|
{{ search_form.states }}
|
36
|
<button id="btn_all_state">Tous</button>
|
37
|
<button id="btn_none_state">Aucun</button>
|
38
|
</form>
|
39
|
</div>
|
40
|
</div>
|
41
|
<div class="content">
|
42
|
<table id="dossiers" class="main">
|
43
|
<thead>
|
44
|
<tr>
|
45
|
<th colspan="2">N° dossier
|
46
|
</th><th rowspan="2">Nom</th>
|
47
|
<th rowspan="2">Prénom</th>
|
48
|
<th rowspan="2">État du dossier</th>
|
49
|
<th rowspan="2">Mises 1</th>
|
50
|
<th rowspan="2">Mises 2</th>
|
51
|
<th rowspan="2">Mises 3</th>
|
52
|
</tr>
|
53
|
<tr>
|
54
|
<th>papier</th>
|
55
|
<th>inform.</th>
|
56
|
</tr>
|
57
|
</thead>
|
58
|
<tbody>
|
59
|
|
60
|
{% for patient_record in patient_records %}
|
61
|
<tr style="display: table-row;" class="pr-line {{ patient_record.state_class }}" data-link="{{ patient_record.object.id }}/view">
|
62
|
<td>{{ patient_record.object.paper_id|default_if_none:"" }}</td>
|
63
|
<td>{{ patient_record.object.id }}</td>
|
64
|
<td><span class="lastname">{{ patient_record.object.last_name }}</span></td>
|
65
|
<td>{{ patient_record.object.first_name }}</td>
|
66
|
<td class="{{ patient_record.state_class }}">{{ patient_record.state }}</td>
|
67
|
<td>{% for mise in patient_record.object.mises_1.all %}{{ mise }} {% endfor %}</td>
|
68
|
<td>{% for mise in patient_record.object.mises_2.all %}{{ mise }} {% endfor %}</td>
|
69
|
<td>{% for mise in patient_record.object.mises_3.all %}{{ mise }} {% endfor %}</td>
|
70
|
</tr>
|
71
|
{% endfor %}
|
72
|
|
73
|
</tbody>
|
74
|
</table>
|
75
|
|
76
|
{% if request.GET %}
|
77
|
<div class="pagination">
|
78
|
<span class="step-links">
|
79
|
{% if paginate_patient_records.has_previous %}
|
80
|
<a href="?{{ query }}&page={{ paginate_patient_records.previous_page_number }}">««</a>
|
81
|
{% endif %}
|
82
|
|
83
|
<span class="current">
|
84
|
page {{ paginate_patient_records.number }} de {{ paginate_patient_records.paginator.num_pages }}
|
85
|
</span>
|
86
|
|
87
|
{% if paginate_patient_records.has_next %}
|
88
|
<a href="?{{ query }}&page={{ paginate_patient_records.next_page_number }}">»»</a>
|
89
|
{% endif %}
|
90
|
</span>
|
91
|
</div>
|
92
|
{% endif %}
|
93
|
|
94
|
|
95
|
|
96
|
{% if not request.GET %}
|
97
|
<div class="big-msg-info">
|
98
|
Utilisez le formulaire de recherche sur la gauche de l'écran pour afficher
|
99
|
les dossiers correspondants.
|
100
|
</div>
|
101
|
{% elif not patient_records %}
|
102
|
<div>Pas de résultat pour votre recherche</div>
|
103
|
{% endif %}
|
104
|
|
105
|
</div>
|
106
|
{% endblock %}
|