Project

General

Profile

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

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

1
{% extends 'dossiers/patientrecord_tab.html' %}
2
{% block print-button %}
3
<div class="print-container screen-only">
4
  <form class="datepicker filter">
5
    <h5>Filtrer par date</h5>
6
      du <input type="text" name="from" />
7
      au <input type="text" name="to" />
8
  </form>
9
  {{ block.super }}
10
</div>
11
<br class="clear" />
12
{% endblock %}
13

    
14
{% block content %}
15
<div id="tabs-5">
16
  {% for state, last_rdvs in history %}
17
  <div class="frame">
18
    <h3>{% if state %}{{ state.status.name }} depuis le {{ state.date_selected|date:"SHORT_DATE_FORMAT" }}{% else %}Indéfini{% endif %}</h3>
19
    {% if last_rdvs %}
20
    <table class="basic">
21
      <thead>
22
        <tr> <th>Date</th> <th>Pointage</th> <th>Type d'acte</th> <th>Intervenants</th> <th>Commentaire</th></tr>
23
      </thead>
24
      <tbody>
25
      {% for act, state, missing_workers in last_rdvs %}
26
      <tr>
27
        <td><span class="date">{{ act.date|date:"SHORT_DATE_FORMAT" }}</span>
28
          <span class="time">{{ act.time|date:"H:i" }}</span>{% if missing_workers %} <span title="Au moins un intervenant est absent" class="icon-warning-sign absent"></span>{% endif %}</td>
29
        <td>{% if state %}{% if act.is_absent %}<strong>{% endif %}{% if state.state_name == 'ACT_DOUBLE' or state.state_name == 'ACT_LOST' %}Présent ({{ state }}){% else %}{{ state }}{% endif %}{% if act.is_absent %}</strong>{% endif %}{% else %}Non pointé.{% endif %}</td>
30
        <td>{{ act.act_type }}</td>
31
        <td class="width-limited">{% for doctor in act.doctors.all %}
32
          {% if doctor in missing_workers %}<span class="absent" title="Absent">{% endif %}
33
            {{ doctor.first_name }} <span class="lastname">{{ doctor.last_name }}</span>
34
            {% if doctor in missing_workers %}</span>{% endif %}
35
          {% endfor %}</td>
36
        <td class="width-limited">{% if act.comment %}{{ act.comment }}{% endif %}</td>
37
      </tr>
38
      {% endfor %}
39
      </tbody>
40
    </table>
41
    {% endif %}
42
  </div>
43
  {% endfor %}
44
</div>
45
{% endblock %}
46
{% block print-actions %}filter_date_bounds('#ui-tabs-5', '.frame', 'td span.date');{% endblock %}
(22-22/33)