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' class='icon-print'>Imprimer</button>
|
8
|
{% endblock %}
|
9
|
|
10
|
{% block content %}
|
11
|
<div id="sidebar">
|
12
|
<div>
|
13
|
<form>
|
14
|
<h3>Rechercher les dossiers</h3>
|
15
|
<div>
|
16
|
<label>
|
17
|
<input name="without_quotations" type="checkbox"
|
18
|
{% if request.GET.without_quotations == 'on' %}checked="checked"{% endif %}/> Sans quotation MISES</label>
|
19
|
</div>
|
20
|
<div>
|
21
|
<label>
|
22
|
<input name="without_anap_quotations" type="checkbox"
|
23
|
{% if request.GET.without_anap_quotations == 'on' %}checked="checked"{% endif %}/> Sans quotation ANAP</label>
|
24
|
</div>
|
25
|
<h5>Avec au moins un acte (optionnel)</h5>
|
26
|
Après le (jj/mm/aaaa)
|
27
|
<label><input name="date_actes_start" type="text" value="{{ request.GET.date_actes_start }}"></label>
|
28
|
Avant le (jj/mm/aaaa)
|
29
|
<label><input name="date_actes_end" type="text" value="{{ request.GET.date_actes_end }}"></label>
|
30
|
<p><br/></p>
|
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
|
<h4>Filtres sur l'état</h4>
|
43
|
{{ search_form.states }}
|
44
|
<button id="btn_all_state">Tous</button>
|
45
|
<button id="btn_none_state">Aucun</button>
|
46
|
</form>
|
47
|
</div>
|
48
|
</div>
|
49
|
<div class="content">
|
50
|
<table id="dossiers" class="main screen-only">
|
51
|
{% include "dossiers/quotations_patients_table_content.html" %}
|
52
|
</table>
|
53
|
|
54
|
{% if request.GET %}
|
55
|
<div class="pagination screen-only">
|
56
|
<span class="step-links">
|
57
|
{% if paginate_patient_records.has_previous %}
|
58
|
<a href="?{{ query }}&page={{ paginate_patient_records.previous_page_number }}">««</a>
|
59
|
{% endif %}
|
60
|
|
61
|
<span class="current">
|
62
|
page {{ paginate_patient_records.number }} de {{ paginate_patient_records.paginator.num_pages }}
|
63
|
</span>
|
64
|
|
65
|
{% if paginate_patient_records.has_next %}
|
66
|
<a href="?{{ query }}&page={{ paginate_patient_records.next_page_number }}">»»</a>
|
67
|
{% endif %}
|
68
|
</span>
|
69
|
</div>
|
70
|
{% endif %}
|
71
|
|
72
|
|
73
|
|
74
|
{% if not request.GET %}
|
75
|
<div class="big-msg-info">
|
76
|
Utilisez le formulaire de recherche sur la gauche de l'écran pour afficher
|
77
|
les dossiers correspondants.
|
78
|
</div>
|
79
|
{% elif not patient_records %}
|
80
|
<div>Pas de résultat pour votre recherche</div>
|
81
|
{% endif %}
|
82
|
|
83
|
</div>
|
84
|
{% endblock %}
|