{{ 'Choix du rĂ´le'|trans }}
{% if app.user %} {% for group in app.user.possiblegroups %} {% for role in group.roles %} {% if role == 'ROLE_CAISSIER' %} {% for presta in app.user.caissiers %}
{{ group.name|trans }} - {{presta}}
{% endfor %} {% elseif role == 'ROLE_COMPTOIR' %} {% for comptoir in app.user.comptoirsgeres %}
{{ group.name|trans }} - {{comptoir}}
{% endfor %} {% elseif role == 'ROLE_CONTACT' %} {% for groupe in app.user.groupecontactsgeres %}
{{ group.name|trans }} - {{groupe}}
{% endfor %} {% elseif role == 'ROLE_GESTION_GROUPE' %} {% for groupe in app.user.groupesgeres %}
{{ group.name|trans }} - {{groupe}}
{% endfor %} {% elseif role == 'ROLE_PRESTATAIRE' %} {% for presta in app.user.prestataires %}
{{ group.name|trans }} - {{presta}}
{% endfor %} {% elseif role == 'ROLE_TRESORIER' %} {% if app.user.groupetresoriersgeres|length <= 0 %}
{{ group.name|trans }}
{% endif %} {% for groupe in app.user.groupetresoriersgeres %}
{{ group.name|trans }} - {{groupe}}
{% endfor %} {% elseif role == 'ROLE_ADHERENT' or role == 'ROLE_ADMIN_SIEGE' or role == 'ROLE_REDACTEUR' or role == 'ROLE_CONTROLEUR' or role == 'ROLE_SUPER_ADMIN' or role == 'ROLE_SECRETAIRE' or role == 'ROLE_SOLIDOUME' or role == 'ROLE_ADMIN_SSA' %}
{{ group.name|trans }}
{% endif %} {% endfor %} {% endfor %} {% endif %}