{% set docs = [ { label: "Carnet de vaccination", field: "vaccinationRecord", file: profil.vaccinationRecord, mime: 'vaccinationRecordFile', valid: profil.validCertificat, docType: 'vaccin' }, { label: "Fiche sanitaire", field: "healthRecord", file: profil.healthRecord, mime: 'healthRecordFile', valid: profil.validPicture, docType: 'fiche' }, { label: "Assurance scolaire", field: "schoolInsurance", file: profil.schoolInsurance, mime: 'schoolInsuranceFile', valid: profil.validIdentity, docType: 'assurance' } ] %} {% for doc in docs %}

{{ doc.label }} :

{% if doc.file %} Voir le document {% else %} Aucun document {% endif %}
{% endfor %}