{% extends 'dossiers/patientrecord_tab.html' %} {% block print-button %}
{% endblock %} {% block content %}
{% for state, last_rdvs in history %}

{% if state %}{{ state.status.name }} depuis le {{ state.date_selected|date:"SHORT_DATE_FORMAT" }}{% else %}Indéfini{% endif %}

{% if last_rdvs %} {% for act, state, missing_workers in last_rdvs %} {% endfor %}
Date Pointage Type d'acte Intervenants Commentaire
{{ act.date|date:"SHORT_DATE_FORMAT" }} {{ act.time|date:"H:i" }}{% if missing_workers %} {% endif %} {% if state %}{% if act.is_absent %}{% endif %}{% if state.state_name == 'ACT_DOUBLE' or state.state_name == 'ACT_LOST' %}Présent ({{ state }}){% else %}{{ state }}{% endif %}{% if act.is_absent %}{% endif %}{% else %}Non pointé.{% endif %} {{ act.act_type }} {% for doctor in act.doctors.all %} {% if doctor in missing_workers %}{% endif %} {{ doctor.first_name }} {{ doctor.last_name }} {% if doctor in missing_workers %}{% endif %} {% endfor %} {% if act.comment %}{{ act.comment }}{% endif %}
{% endif %}
{% endfor %}
{% endblock %} {% block print-actions %}filter_date_bounds('#ui-tabs-5', '.frame', 'td span.date');{% endblock %}