{# EXEMPLE A SUPPRIMER ICI: DANS LE IF ON MET LE ROLE ET MET CE QU ON VEUT AFFICHER #}
-
Accueil
{% if is_granted('ROLE_ADMIN') %}
-
Tous les emprunts
{% endif %}
{# ----------------- #}
{% if is_granted('ROLE_ELEVE') %}
-
Mes emprunts
{% endif %}
{% if is_granted('ROLE_RESPONSABLE') %}
-
Nouvel élève
{% endif %}
-
Instruments
-
Cours
{% if app.user.id is not defined %}
-
Se Connecter
-
Créer un compte
{% else %}
-
Se Déconnecter
{% if app.user.roles.0 == 'ROLE_RESPONSABLE' %}
{% elseif app.user.roles.0 == 'ROLE_ELEVE' %}
{% elseif app.user.roles.0 == 'ROLE_PROFESSEUR' %}
{% endif %}
{{app.user.mail}}
{% endif %}