{{ block("header", "header.html.twig") }} {% block body %}
{% if app.user.id is defined and app.user.roles.0 == 'ROLE_ELEVE' and eleve.id == app.user.eleve.id or app.user.id is defined and app.user.roles.0 == 'ROLE_RESPONSABLE' and eleve.responsable.id == app.user.responsable.id or app.user.id is defined and app.user.roles.0 == 'ROLE_ADMIN'%}
PAGE DE CONSULTATION D'UN ELEVE
MES INFORMATIONS

Informations Elève
Nom : {{eleve.nom}}
Prénom : {{eleve.prenom}}
Date de naissance : {{eleve.dateNaiss|date("d/m/Y")}}

MON RESPONSABLE

{{eleve.responsable.nom}} {{eleve.responsable.prenom}}

Pour plus d'information sur le responsable veuillez vous connecter sur le compte responsable de cette élève

MES COURS
{% if eleve.inscriptions|length >0 %} {% if app.user.id is defined and app.user.roles.0 == 'ROLE_RESPONSABLE' and eleve.responsable.id == app.user.responsable.id or app.user.id is defined and app.user.roles.0 == 'ROLE_ADMIN'%} {% endif %} {% for c in eleve.inscriptions %} {% if app.user.id is defined and app.user.roles.0 == 'ROLE_RESPONSABLE' and eleve.responsable.id == app.user.responsable.id or app.user.id is defined and app.user.roles.0 == 'ROLE_ADMIN'%} {% endif %} {% endfor %}
Cours Jour Crénaux horaire Nombre de paiements Prix du cours
{{ c.cours.libelle}} {{ c.cours.dateCours}} {{ c.cours.heuredebut}} --> {{ c.cours.heurefin}} {{ c.nombredepaiements}} {{ c.cours.prix}}€
{% else %}

Vous n'avez pas de cours

{% endif %}
MES EMPRUNTS
{% if eleve.emprunters|length >0 %} {{ block("body", "emprunt/consulter.html.twig") }} {# {% for i in eleve.emprunters %} {% endfor %} #}
Id de l'instrument Instrument Date Emprunt Date Fin Etat
{{ i.instrument.id}} {{ i.instrument.intitule}} {{ i.datedebut|date("d/m/Y")}} {{ i.dateretour|date("d/m/Y")}} {{ i.instrument.etat.libelle}}
{% else %}

Vous n'avez pas d'emprunts

{% endif %} {% else %}

Vous ne pouvez pas voir cela !

{% endif %}
{% endblock %} {{ block("footer", "footer.html.twig") }}