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
{% 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 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
  </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
  </form>
46
  </div>
47
</div>
48
<div class="content">
49
  <table id="dossiers" class="main screen-only">
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">Date de naissance</th>
56
        <th rowspan="2">État du dossier</th>
57
        <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
        <th rowspan="2">ANAP</th>
61
      </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
        <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
        <td>{{ patient_record.object.birthdate|date:"d-m-Y" }}</td>
76
        <td class="{{ patient_record.state_class }}">{{ patient_record.state }}</td>
77
        <td>{% if patient_record.next_rdv_date %}
78
          {{ patient_record.next_rdv_date|date:"d-m-Y, H:i" }}
79
          {% endif %}
80
        </td>
81
        <td>{% if patient_record.last_rdv_date %}
82
          {{ patient_record.last_rdv_date|date:"d-m-Y, H:i" }}
83
          {% endif %}</td>
84
        <td>{% if patient_record.mises %}<span class="icon-ok"></span>{% endif %}</td>
85
        <td>{% if patient_record.anap %}<span class="icon-ok"></span>{% endif %}</td>
86
      </tr>
87
      {% endfor %}
88

    
89
    </tbody>
90
  </table>
91

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

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

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

    
110

    
111

    
112
  {% 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 %}
(25-25/29)