{% include 'patient/_patient_sidbar_card.html.twig' with { 'patient': vaccination.getAppointment().getPatient(), 'is_patient_page': false } %}
{% set appointment = vaccination.appointmentDTO %}
{{ appointment.getIntervalTitle() }}
{{ appointment_status(appointment.getAppointmentStatus()) }} {{ vaccination_action(appointment, app.request.uri, app.user, 'btn btn-sm', 'text') }}
{% if is_superior() %}
{% include 'patient/_patient_personnel_card.html.twig' with { 'patient': appointment.getPatient() } %}
{% endif %}
Détail de la vaccination : {{ title }}
{% set btnClass = is_superior() ? 'w-50' : "w-100" %}
{% if is_superior() %}
{{ delete_btn(vaccination.getId(), path('manage_vaccination_delete', {id: vaccination.getId()}), csrf_token('delete' ~ vaccination.getId()), 'vaccination', 'Êtes-vous sûr de vouloir supprimer cette vaccination ?', 'La vaccination a été supprimée avec succès.', 'La suppression a été annulée.', path('manage_vaccination_index'), 'Supprimer', 'btn btn-danger me-2') }}
{% endif %}
Éditer
RENDEZ-VOUS DU :
{{ appointment.getAppointmentDate()|date('d/m/Y') }}
{{ appointment.getAppointmentTime()|date('à H:i') }}
{{ appointment_status(appointment.getAppointmentStatus()) }} {{ vaccination_action(appointment, app.request.uri, app.user, 'btn btn-sm', 'text') }}
{% set daysRemaining = appointment.getAppointmentDate()|days_remaining %}
{% set statusMessage = aStatusMessage(appointment.getAppointmentStatus(), daysRemaining) %}
{% if appointment.isVaccinationInProgress() %}
{% elseif daysRemaining == 0 %}
{{ icofont('exclamation-circle') }} Incomplet, en attente de vaccins manquants
{% elseif daysRemaining > 0 %}
{{ statusMessage|trans({'%count%': daysRemaining}) }}
{{ statusMessage }}
{% else %}{{ statusMessage }}
{% endif %}
{% include 'appointment/_appointment_view_vacinnes.html.twig' with { 'appointmentVaccinationDTO': appointment } %}