Projet

Général

Profil

« Précédent | Suivant » 

Révision 97fbc132

Ajouté par Mikaël Ates il y a plus de 9 ans

dossiers: add state date on quotation page and a bit of refactoring (fixes #5977).

Voir les différences:

calebasse/dossiers/templates/dossiers/quotations_print.html
1 1
<table class="main print-only">
2
  <thead>
3
    <tr>
4
      <th colspan="2">N° dossier
5
      </th><th rowspan="2">Nom</th>
6
      <th rowspan="2">Prénom</th>
7
      <th rowspan="2">Date de naissance</th>
8
      <th rowspan="2">État du dossier</th>
9
      <th rowspan="2">Date du prochain rendez-vou</th>
10
      <th rowspan="2">Date du dernier rendez-vous</th>
11
      <th rowspan="2">Mises</th>
12
      <th rowspan="2">ANAP</th>
13
    </tr>
14
    <tr>
15
      <th>papier</th>
16
      <th>inform.</th>
17
    </tr>
18
  </thead>
19
  <tbody>
20
    {% for patient_record in patient_records %}
21
    <tr style="display: table-row;" class="pr-line {{ patient_record.state_class }}">
22
      <td>{{ patient_record.object.paper_id|default_if_none:"" }}</td>
23
      <td>{{ patient_record.object.id }}</td>
24
      <td><span class="lastname">{{ patient_record.object.last_name }}</span></td>
25
      <td>{{ patient_record.object.first_name }}</td>
26
      <td>{{ patient_record.object.birthdate|date:"d-m-Y" }}</td>
27
      <td class="{{ patient_record.state_class }}">{{ patient_record.state }}</td>
28
      <td>{% if patient_record.next_rdv_date %}
29
        {{ patient_record.next_rdv_date|date:"d-m-Y, H:i" }}
30
        {% endif %}
31
      </td>
32
      <td>{% if patient_record.last_rdv_date %}
33
        {{ patient_record.last_rdv_date|date:"d-m-Y, H:i" }}
34
        {% endif %}</td>
35
      <td>{% if patient_record.mises %}<span class="icon-ok"></span>{% endif %}</td>
36
      <td>{% if patient_record.anap %}<span class="icon-ok"></span>{% endif %}</td>
37
    </tr>
38
    {% endfor %}
39
  </tbody>
2
  {% include "dossiers/quotations_patients_table_content.html" %}
40 3
</table>

Formats disponibles : Unified diff