Projet

Général

Profil

« Précédent | Suivant » 

Révision 54318d2c

Ajouté par Serghei Mihai il y a plus de 9 ans

dossiers: printing each patient record tab with filtering past and future appointments by dates

Closes #3109

Voir les différences:

calebasse/dossiers/templates/dossiers/patientrecord_tab6_next_rdv.html
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
{% block content %}
1 14
<div id="tabs-6">
2 15
  <table class="basic">
3 16
    <thead>
......
6 19
    <tbody>
7 20
    {% for event, state, missing_participants, inactive_participants in next_rdvs %}
8 21
    <tr>
9
      <td>{% firstof event.start_datetime|date:"l d/m/y H:i"|title %}{% if missing_participants or inactive_participants %} <span title="Au moins un intervenant est absent ou ne fait plus partie du service" class="icon-warning-sign absent"></span>{% endif %}</td>
22
      <td><span class="date">{{ event.start_datetime|date:"SHORT_DATE_FORMAT" }}</span>
23
          <span class="time">{% firstof event.start_datetime|date:"H:i"|title %}</span>{% if missing_participants or inactive_participants %} <span title="Au moins un intervenant est absent ou ne fait plus partie du service" class="icon-warning-sign absent"></span>{% endif %}</td>
10 24
      <td>{% if state %}{% if state.state_name != 'VALIDE' %}<strong>{% endif %}{{ state }}{% if state.state_name != 'VALIDE' %}</strong>{% endif %}{% else %}Non pointé.{% endif %}</td>
11 25
      <td>{{ event.act_type }}</td>
12 26
      <td class="width-limited">{% for participant in event.participants.all %}
......
32 46
    </tbody>
33 47
  </table>
34 48
</div>
49
{% endblock %}
50
{% block print-actions %}filter_date_bounds('#ui-tabs-6', '.basic td span.date');{% endblock %}

Formats disponibles : Unified diff