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