This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
calebasse/calebasse/dossiers/templates/dossiers/patientrecord_tab5_actes_pa...

47 lines
2.1 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends 'dossiers/patientrecord_tab.html' %}
{% block print-button %}
<div class="print-container screen-only">
<form class="datepicker filter">
<h5>Filtrer par date</h5>
du <input type="text" name="from" />
au <input type="text" name="to" />
</form>
{{ block.super }}
</div>
<br class="clear" />
{% endblock %}
{% block content %}
<div id="tabs-5">
{% for state, last_rdvs in history %}
<div class="frame">
<h3>{% if state %}{{ state.status.name }} depuis le {{ state.date_selected|date:"SHORT_DATE_FORMAT" }}{% else %}Indéfini{% endif %}</h3>
{% if last_rdvs %}
<table class="basic">
<thead>
<tr> <th>Date</th> <th>Pointage</th> <th>Type d'acte</th> <th>Intervenants</th> <th>Commentaire</th></tr>
</thead>
<tbody>
{% for act, state, missing_workers in last_rdvs %}
<tr>
<td><span class="date" data-start-date='{{ act.date|date:"SHORT_DATE_FORMAT" }}'>{{ act.date|date:"SHORT_DATE_FORMAT" }}</span>
<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>
<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>
<td>{{ act.act_type }}</td>
<td class="width-limited">{% for doctor in act.doctors.all %}
{% if doctor in missing_workers %}<span class="absent" title="Absent">{% endif %}
{{ doctor.first_name }} <span class="lastname">{{ doctor.last_name }}</span>
{% if doctor in missing_workers %}</span>{% endif %}
{% endfor %}</td>
<td class="width-limited">{% if act.comment %}{{ act.comment }}{% endif %}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div>
{% endfor %}
</div>
{% endblock %}
{% block print-actions %}filter_date_bounds('#ui-tabs-5', '.frame', 'td span.date');{% endblock %}