Projet

Général

Profil

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

calebasse / calebasse / dossiers / templates / dossiers / quotations.html @ 025a80a6

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
    <thead>
52
      <tr>
53
        <th colspan="2">N° dossier
54
        </th><th rowspan="2">Nom</th>
55
        <th rowspan="2">Prénom</th>
56
        <th rowspan="2">Date de naissance</th>
57
        <th rowspan="2">État du dossier</th>
58
        <th rowspan="2">Date du prochain rendez-vou</th>
59
        <th rowspan="2">Date du dernier rendez-vous</th>
60
        <th rowspan="2">Mises</th>
61
        <th rowspan="2">ANAP</th>
62
      </tr>
63
      <tr>
64
        <th>papier</th>
65
        <th>inform.</th>
66
      </tr>
67
    </thead>
68
    <tbody>
69

    
70
      {% for patient_record in patient_records %}
71
      <tr style="display: table-row;" class="pr-line {{ patient_record.state_class }}" data-link="{{ patient_record.object.id }}/view">
72
        <td>{{ patient_record.object.paper_id|default_if_none:"" }}</td>
73
        <td>{{ patient_record.object.id }}</td>
74
        <td><span class="lastname">{{ patient_record.object.last_name }}</span></td>
75
        <td>{{ patient_record.object.first_name }}</td>
76
        <td>{{ patient_record.object.birthdate|date:"d-m-Y" }}</td>
77
        <td class="{{ patient_record.state_class }}">{{ patient_record.state }}</td>
78
        <td>{% if patient_record.next_rdv_date %}
79
          {{ patient_record.next_rdv_date|date:"d-m-Y, H:i" }}
80
          {% endif %}
81
        </td>
82
        <td>{% if patient_record.last_rdv_date %}
83
          {{ patient_record.last_rdv_date|date:"d-m-Y, H:i" }}
84
          {% endif %}</td>
85
        <td>{% if patient_record.mises %}<span class="icon-ok"></span>{% endif %}</td>
86
        <td>{% if patient_record.anap %}<span class="icon-ok"></span>{% endif %}</td>
87
      </tr>
88
      {% endfor %}
89

    
90
    </tbody>
91
  </table>
92

    
93
  {% if request.GET %}
94
  <div class="pagination screen-only">
95
    <span class="step-links">
96
      {% if paginate_patient_records.has_previous %}
97
      <a href="?{{ query }}&page={{ paginate_patient_records.previous_page_number }}">««</a>
98
      {% endif %}
99

    
100
      <span class="current">
101
        page {{ paginate_patient_records.number }} de {{ paginate_patient_records.paginator.num_pages }}
102
      </span>
103

    
104
      {% if paginate_patient_records.has_next %}
105
      <a href="?{{ query }}&page={{ paginate_patient_records.next_page_number }}">»»</a>
106
      {% endif %}
107
    </span>
108
  </div>
109
  {% endif %}
110

    
111

    
112

    
113
  {% if not request.GET %}
114
  <div class="big-msg-info">
115
    Utilisez le formulaire de recherche sur la gauche de l'écran pour afficher
116
    les dossiers correspondants.
117
  </div>
118
  {% elif not patient_records %}
119
  <div>Pas de résultat pour votre recherche</div>
120
  {% endif %}
121

    
122
</div>
123
{% endblock %}
(28-28/33)