{% include '@kohinos/block/demo_shortcut.html.twig' %}
{# ACTIONS PRINCIPALES POUR CHAQUE UTILISATEUR CONNECTE #}
{% if not app.request.session.has('_choixGroup') %}
{#
// @TODO : Ajouter des raccourcis en fonction des droits de l'utilisateur :
- ajout d'un adhérent (avec reception de la cotisation en comptoir par exemple)
- ajout d'un prestataire (avec reception de la cotisation en comptoir par exemple)
{% if app.user and is_granted('ROLE_ADMIN_ADHERENT_GERER_CREATE') %}
Créer un nouvel adhérent
{% endif %} #}
{% if app.user and is_granted('ROLE_SUPER_ADMIN') %}
{% include '@kohinos/block/admin_superadmin.html.twig' %}
{% elseif app.user and is_granted('ROLE_ADMIN_SIEGE') %}
{% include '@kohinos/block/admin_siege.html.twig' %}
{# Rien à ajouter pour un rédacteur #}
{# {% elseif app.user and is_granted('ROLE_REDACTEUR') %} #}
{% elseif app.user and is_granted('ROLE_TRESORIER') or is_granted('ROLE_CONTROLEUR') %}
{% include '@kohinos/block/soldes_siege.html.twig' %}
{% elseif app.user and is_granted('ROLE_GESTION_GROUPE') %}
{% include '@kohinos/block/admin_groupe.html.twig' %}
{% elseif app.user and is_granted('ROLE_COMPTOIR') %}
{% include '@kohinos/block/admin_comptoir.html.twig' %}
{% elseif app.user and is_granted('ROLE_CONTACT') %}
{# {% include '@kohinos/groupe/block/infos.html.twig' %} #}
{% elseif app.user and is_granted('ROLE_SUPER_ADMIN') %}
{% include '@kohinos/block/soldes_siege.html.twig' %}
{% elseif app.user and is_granted('ROLE_PRESTATAIRE') and getCurrentPrestataire() != null %}
{% include '@kohinos/block/admin_prestataire.html.twig' %}
{% elseif app.user and is_granted('ROLE_CAISSIER') and getCurrentPrestataire() != null %}
{% include '@kohinos/block/admin_caissier.html.twig' with {'title': 'Transactions'} %}
{% elseif app.user and is_granted('ROLE_ADHERENT') and app.user.adherent %}
{% include '@kohinos/block/admin_adherent.html.twig' %}
{% else %}
{# User not loggued #}
{% endif %}
{# Bloc SEPA - Demandes en attente pour trésoriers et super admins #}
{% include '@kohinos/block/sepa_pending_requests.html.twig' %}
{# Bloc Achats de monnaie - Demandes en attente pour utilisateurs avec canValidateAchat #}
{% include '@kohinos/block/purchase_pending_requests.html.twig' %}
{# Bloc Reconversions - Reconversions en attente pour trésoriers et super admins #}
{% include '@kohinos/block/reconversion_pending_requests.html.twig' %}
{# Affichage de la carte des prestataires pour les adhérents #}
{% if KOH_USE_WORDPRESS is defined and KOH_USE_WORDPRESS == 'false' and ((app.user and is_granted('ROLE_ADHERENT')) or not app.user) %}
{% include '@kohinos/block/carte_globale.html.twig' with {'title': 'Carte globale des établissements'|trans} %}
{% endif %}
{# {% if app.user and is_granted('ROLE_ADMIN') %}
Documentation utilisateur
{% endif %} #}
{% if app.user %}