Project

General

Profile

Download (3.5 KB) Statistics
| Branch: | Tag: | Revision:

calebasse / calebasse / dossiers / templates / dossiers / waiting_queue.html @ b057fff0

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">Intervenant(s)</th>
43
        <th rowspan="2">Commentaire</th>
44
      </tr>
45
      <tr>
46
        <th>papier</th>
47
        <th>inform.</th>
48
      </tr>
49
    </thead>
50
    <tbody>
51

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

    
66
    </tbody>
67
  </table>
68

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

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

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

    
85

    
86

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

    
91
</div>
92
{% endblock %}
(33-33/33)