{% load url from future %} Imprimer
{% for appointment in worker_agenda.appointments %}

{{ appointment.begin_hour }} {% if appointment.event_type %} — {{ appointment.event_type }} {% endif %} {% if appointment.title %} — {{ appointment.title }} {% endif %} {% if appointment.length %} — {{ appointment.length }}m {% endif %} {% if appointment.workers_initial %} —{{ appointment.workers_initial }} {% endif %} {% if appointment.act_type %} — {{ appointment.act_type }} {% endif %} {% if appointment.room %} — {{ appointment.room }} {% endif %} {% for service_name in appointment.other_services_names %} {% endfor %} {% if appointment.convocation_sent %} {% endif %} {% if appointment.description %} {% endif %} {% if appointment.event_id %} {% if appointment.patient_record_id %} {% else %} {% endif %}

{% if appointment.type == 'free' %} {% endif %} {% if appointment.event_id %} {% if appointment.workers %}

Intervenants : {% for worker in appointment.workers %} {{ worker.first_name }} {{ worker.last_name }}{% if forloop.last %}.{% else %}, {% endif %} {% endfor %}

{% endif %}
{% endif %} {% if appointment.patient_record_id %}

{% for address in appointment.patient.addresses.all %} {% if address.place_of_life %} {{ address.phone }} {% for contact in address.patientcontact_set.all %} {{ contact.mobile }} {% endfor %} {% endif %} {% endfor %}

Dossier patient - Prochains rendez-vous - Courrier {% endif %} {% if appointment.validation %}
{% if appointment.validation.1 %}{{ appointment.validation.2 }}, le {{ appointment.validation.1.created }} par {{ appointment.validation.1.author }} {% if appointment.validation.1.auto %}(par validation automatique){% endif %}. {% if appointment.validation.0.is_billed %}Acte facturé{% endif %} {% else %} Non pointé. {% endif %} {% if not appointment.validation.0.validation_locked and appointment.validation.3 %}
{% csrf_token %}
{% endif %}
{% endif %}
{% endfor %}