Projet

Général

Profil

Télécharger (3,28 ko) Statistiques
| Branche: | Tag: | Révision:

calebasse / calebasse / dossiers / templates / dossiers / waiting_queue.html @ 54318d2c

1
{% extends "dossiers/base.html" %}
2
{% load url from future %}
3

    
4
{% block appbar %}
5
    <h2>Dossiers sur liste d'attente{% if len_patient_records %} : {{ len_patient_records }}{% endif %}</h2>
6
    <a href=".">Retourner aux dossiers</a>
7
    <button id='print-button'>Imprimer</button>
8
{% endblock %}
9

    
10
{% block content %}
11
<div id="sidebar">
12
    <div>
13
    <form>
14
    <h3>Rechercher dans les dossiers</h3>
15
    <label>Nom <input name="last_name" type="text" value="{{ request.GET.last_name }}" class="focus"></label>
16
    <label>Prénom <input name="first_name" type="text" value="{{ request.GET.first_name }}"></label>
17
    <label>Numéro de dossier papier <input name="paper_id" type="text" value="{{ request.GET.paper_id }}"></label>
18
    <label>Numéro de dossier inform. <input name="id" type="text" value="{{ request.GET.id }}"></label>
19
    <label>Numéro d'assuré social <input name="social_security_id" value="{{ request.GET.social_security_id }}" type="text"></label>
20
    {% if request.GET %}
21
    <div class="search-reset">
22
    <button id="search">Rechercher</button>
23
    <button id="reset" class="icon-remove-sign" title="Réinitialiser"></button>
24
    </div>
25
    {% else %}
26
    <button id="search">Rechercher</button>
27
    {% endif %}
28
    <p id="search-results" style="display: none; "></p>
29
    </form>
30
    </div>
31
</div>
32
<div class="content">
33
  <table id="dossiers" class="main">
34
    <thead>
35
      <tr>
36
        <th colspan="2">N° dossier
37
        </th><th rowspan="2">Nom</th>
38
        <th rowspan="2">Prénom</th>
39
        <th rowspan="2">Position</th>
40
        <th rowspan="2">Date d'accueil</th>
41
        <th rowspan="2">Prochain rendez-vous</th>
42
        <th rowspan="2">Commentaire</th>
43
      </tr>
44
      <tr>
45
        <th>papier</th>
46
        <th>inform.</th>
47
      </tr>
48
    </thead>
49
    <tbody>
50

    
51
      {% for patient_record in patient_records %}
52
      <tr style="display: table-row;" class="pr-line {{ patient_record.state_class }}" data-link="{{ patient_record.object.id }}/view">
53
          <td>{{ patient_record.object.paper_id|default_if_none:"" }}</td>
54
          <td>{{ patient_record.object.id }}</td>
55
          <td><span class="lastname">{{ patient_record.object.last_name }}</span></td>
56
          <td>{{ patient_record.object.first_name }}</td>
57
          <td>{{ patient_record.position }}</td>
58
          <td>{{ patient_record.object.last_state.date_selected|date:"SHORT_DATE_FORMAT" }}</td>
59
          <td>{{ patient_record.object.get_next_rdv.start_datetime|date:"SHORT_DATE_FORMAT" }}</td>
60
          <td>{{ patient_record.object.last_state.comment|default_if_none:"" }}</td>
61
      </tr>
62
      {% endfor %}
63

    
64
    </tbody>
65
  </table>
66

    
67
<div class="pagination">
68
    <span class="step-links">
69
        {% if paginate_patient_records.has_previous %}
70
            <a href="?{{ query }}&page={{ paginate_patient_records.previous_page_number }}">««</a>
71
        {% endif %}
72

    
73
        <span class="current">
74
            page {{ paginate_patient_records.number }} de {{ paginate_patient_records.paginator.num_pages }}
75
        </span>
76

    
77
        {% if paginate_patient_records.has_next %}
78
            <a href="?{{ query }}&page={{ paginate_patient_records.next_page_number }}">»»</a>
79
        {% endif %}
80
    </span>
81
</div>
82

    
83

    
84

    
85
  {% if request.GET and not patient_records %}
86
  <div>Pas de résultat pour votre recherche</div>
87
  {% endif %}
88

    
89
</div>
90
{% endblock %}
(30-30/30)