Projet

Général

Profil

Télécharger (4,16 ko) Statistiques
| Branche: | Tag: | Révision:

calebasse / calebasse / dossiers / templates / dossiers / quotations.html @ 2c6641c8

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 2c6641c8 Serghei MIHAI
<button id='print-button' class='icon-print'>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 2c6641c8 Serghei MIHAI
  <table id="dossiers" class="main screen-only">
50 17e36a37 Frédéric Péters
    <thead>
51
      <tr>
52
        <th colspan="2">N° dossier
53
        </th><th rowspan="2">Nom</th>
54
        <th rowspan="2">Prénom</th>
55 748e8d64 Serghei MIHAI
        <th rowspan="2">Date de naissance</th>
56 17e36a37 Frédéric Péters
        <th rowspan="2">État du dossier</th>
57 748e8d64 Serghei MIHAI
        <th rowspan="2">Date du prochain rendez-vou</th>
58
        <th rowspan="2">Date du dernier rendez-vous</th>
59
        <th rowspan="2">Mises</th>
60 feffc421 Serghei MIHAI
        <th rowspan="2">ANAP</th>
61 17e36a37 Frédéric Péters
      </tr>
62
      <tr>
63
        <th>papier</th>
64
        <th>inform.</th>
65
      </tr>
66
    </thead>
67
    <tbody>
68
69
      {% for patient_record in patient_records %}
70
      <tr style="display: table-row;" class="pr-line {{ patient_record.state_class }}" data-link="{{ patient_record.object.id }}/view">
71 feffc421 Serghei MIHAI
        <td>{{ patient_record.object.paper_id|default_if_none:"" }}</td>
72
        <td>{{ patient_record.object.id }}</td>
73
        <td><span class="lastname">{{ patient_record.object.last_name }}</span></td>
74
        <td>{{ patient_record.object.first_name }}</td>
75 2c6641c8 Serghei MIHAI
        <td>{{ patient_record.object.birthdate|date:"d-m-Y" }}</td>
76 feffc421 Serghei MIHAI
        <td class="{{ patient_record.state_class }}">{{ patient_record.state }}</td>
77 748e8d64 Serghei MIHAI
        <td>{% if patient_record.next_rdv_date %}
78 2c6641c8 Serghei MIHAI
          {{ patient_record.next_rdv_date|date:"d-m-Y, H:i" }}
79 748e8d64 Serghei MIHAI
          {% endif %}
80
        </td>
81
        <td>{% if patient_record.last_rdv_date %}
82 2c6641c8 Serghei MIHAI
          {{ patient_record.last_rdv_date|date:"d-m-Y, H:i" }}
83 748e8d64 Serghei MIHAI
          {% endif %}</td>
84
        <td>{% if patient_record.mises %}<span class="icon-ok"></span>{% endif %}</td>
85 feffc421 Serghei MIHAI
        <td>{% if patient_record.anap %}<span class="icon-ok"></span>{% endif %}</td>
86 17e36a37 Frédéric Péters
      </tr>
87
      {% endfor %}
88
89
    </tbody>
90
  </table>
91
92 feffc421 Serghei MIHAI
  {% if request.GET %}
93 2c6641c8 Serghei MIHAI
  <div class="pagination screen-only">
94 43a5b181 Frédéric Péters
    <span class="step-links">
95 feffc421 Serghei MIHAI
      {% if paginate_patient_records.has_previous %}
96
      <a href="?{{ query }}&page={{ paginate_patient_records.previous_page_number }}">««</a>
97
      {% endif %}
98 43a5b181 Frédéric Péters
99 feffc421 Serghei MIHAI
      <span class="current">
100
        page {{ paginate_patient_records.number }} de {{ paginate_patient_records.paginator.num_pages }}
101
      </span>
102 43a5b181 Frédéric Péters
103 feffc421 Serghei MIHAI
      {% if paginate_patient_records.has_next %}
104
      <a href="?{{ query }}&page={{ paginate_patient_records.next_page_number }}">»»</a>
105
      {% endif %}
106 43a5b181 Frédéric Péters
    </span>
107 feffc421 Serghei MIHAI
  </div>
108
  {% endif %}
109 43a5b181 Frédéric Péters
110
111
112 17e36a37 Frédéric Péters
  {% if not request.GET %}
113
  <div class="big-msg-info">
114
    Utilisez le formulaire de recherche sur la gauche de l'écran pour afficher
115
    les dossiers correspondants.
116
  </div>
117
  {% elif not patient_records %}
118
  <div>Pas de résultat pour votre recherche</div>
119
  {% endif %}
120
121
</div>
122
{% endblock %}