templates/backend/partials/_aside.html.twig line 1

Open in your IDE?
  1. {% if (app.user is not null ) %}
  2.     {% if hideAside is not defined or hideAside == false %}
  3.         <nav id="sidebar" class="sidebar js-sidebar">
  4.             <div class="sidebar-content js-simplebar" data-simplebar="init">
  5.                 <div class="simplebar-wrapper">
  6.                     <div class="simplebar-height-auto-observer-wrapper">
  7.                         <div class="simplebar-height-auto-observer"></div>
  8.                     </div>
  9.                     <div class="simplebar-mask">
  10.                         <div class="simplebar-offset">
  11.                             <div class="simplebar-content-wrapper" tabindex="0" role="region" aria-label="scrollable content">
  12.                                 <div class="simplebar-content pb-5">
  13.                                     <a class="sidebar-brand" href="{{ path('app_homepage') }}">
  14.                                         <img src="{{ asset('build/backend/images/ffcb_logo.jpg', 'backend') }}" class="avatar img-fluid rounded me-1" alt="Logo FFCB">
  15.                                         <span class="align-middle">{{ app_name }}</span>
  16.                                     </a>
  17.                                     <ul class="sidebar-nav mb-5">
  18.                                         <li class="sidebar-header">CRM</li>
  19.                                         <li class="sidebar-item {{ menu is defined and menu == 'home' ? 'active' }}">
  20.                                             <a class="sidebar-link" href="{{ path('app_homepage') }}">
  21.                                                 <span class="menu-icon">
  22.                                                     <i class="fa-regular fa-chart-bar fs-3"></i>
  23.                                                 </span>
  24.                                                 <span class="align-middle">Accueil</span>
  25.                                             </a>
  26.                                         </li>
  27.                                         <li class="sidebar-item {{ menu is defined and menu == 'entreprise' ? 'active' }}">
  28.                                             <a class="sidebar-link" href="{{ path('advanced_search', {'entity': 'entreprise'}) }}">
  29.                                                 <span class="menu-icon">
  30.                                                     <i class="fas fa-building fs-3"></i>
  31.                                                 </span>
  32.                                                 <span class="align-middle">Entreprises</span>
  33.                                             </a>
  34.                                         </li>
  35.                                         <li class="sidebar-item {{ menu is defined and menu == 'contact' ? 'active' }}">
  36.                                             <a class="sidebar-link" href="{{ path('advanced_search', {'entity': 'contact' }) }}">
  37.                                                 <span class="menu-icon">
  38.                                                     <i class="fa-regular fa-address-card fs-3"></i>
  39.                                                 </span>
  40.                                                 <span class="align-middle">Contacts</span>
  41.                                             </a>
  42.                                         </li>
  43.                                         {% if
  44.                                             is_granted('ROLE_BOARD_DIRECTOR') == false and
  45.                                             is_granted('ROLE_REGIONAL_AGENT') == false and
  46.                                             is_granted('ROLE_UNION_PRESIDENT') == false
  47.                                         %}
  48.                                             <li class="sidebar-item {{ menu is defined and menu == 'syndicat' ? 'active' }}">
  49.                                                 <a class="sidebar-link" href="{{ path('advanced_search', {'entity': 'syndicat' }) }}">
  50.                                                     <span class="menu-icon">
  51.                                                         <i class="fa-solid fa-users-rectangle fs-3"></i>
  52.                                                     </span>
  53.                                                     <span class="align-middle">Syndicats</span>
  54.                                                 </a>
  55.                                             </li>
  56.                                         {% endif %}
  57.                                         {% if is_granted('ROLE_COMPTABLE') %}
  58.                                             <li class="sidebar-item {{ menu is defined and menu == 'cotisation' ? 'active' }}">
  59.                                                 <a class="sidebar-link" href="{{ path('advanced_search', {'entity': 'cotisation' }) }}">
  60.                                                     <span class="menu-icon">
  61.                                                         <i class="fa-solid fa-euro-sign fs-3"></i>
  62.                                                     </span>
  63.                                                     <span class="align-middle">Cotisations</span>
  64.                                                 </a>
  65.                                             </li>
  66.                                         {% endif %}
  67.                                         {% if is_granted('ROLE_ADMIN_EXT') %}
  68.                                             <li class="sidebar-header">Extranet & Boutique</li>
  69.                                             <li class="sidebar-item {{ menu is defined and menu == 'user_member' ? 'active' }}">
  70.                                                 <a class="sidebar-link" href="{{ path('advanced_search', {entity: 'user_member'}) }}">
  71.                                                     <span class="menu-icon">
  72.                                                         <i class="fa-solid fa-users fs-3"></i>
  73.                                                     </span>
  74.                                                     <span class="align-middle">Utilisateurs extranet</span>
  75.                                                 </a>
  76.                                             </li>
  77.                                             <li class="sidebar-item {{ menu is defined and menu == 'order' ? 'active' }}">
  78.                                                 <a class="sidebar-link" href="{{ path('advanced_search', {entity: 'order'}) }}">
  79.                                                     <span class="menu-icon">
  80.                                                         <i class="fa-solid fa-cart-shopping fs-3"></i>
  81.                                                     </span>
  82.                                                     <span class="align-middle">Commandes</span>
  83.                                                 </a>
  84.                                             </li>
  85.                                             <li class="sidebar-item {{ menu is defined and menu == 'product' ? 'active' }}">
  86.                                                 <a class="sidebar-link" href="{{ path('advanced_search', {entity: 'product'}) }}">
  87.                                                     <span class="menu-icon">
  88.                                                         <i class="fa-solid fa-boxes-stacked fs-3"></i>
  89.                                                     </span>
  90.                                                     <span class="align-middle">Produits</span>
  91.                                                 </a>
  92.                                             </li>
  93.                                             <li class="sidebar-item {{ menu is defined and menu == 'event' ? 'active' }}">
  94.                                                 <a class="sidebar-link" href="{{ path('advanced_search', {entity: 'event'}) }}">
  95.                                                     <span class="menu-icon">
  96.                                                         <i class="fa-solid fa-calendar-days fs-3"></i>
  97.                                                     </span>
  98.                                                     <span class="align-middle">Evènement FFCB</span>
  99.                                                 </a>
  100.                                             </li>
  101.                                             <li class="sidebar-item {{ menu is defined and menu == 'user_question' ? 'active' }}">
  102.                                                 <a class="sidebar-link" href="{{ path('advanced_search', {entity: 'user_question'}) }}">
  103.                                                     <span class="menu-icon">
  104.                                                         <i class="fa-solid fa-question-circle fs-3"></i>
  105.                                                     </span>
  106.                                                     <span class="align-middle">
  107.                                                         Questions adhérent {{ component('question_counter') }}
  108.                                                     </span>
  109.                                                 </a>
  110.                                             </li>
  111.                                             <li class="sidebar-item {{ menu is defined and menu == 'faq' ? 'active' }}">
  112.                                                 <a class="sidebar-link" href="{{ path('advanced_search', {entity: 'faq'}) }}">
  113.                                                     <span class="menu-icon">
  114.                                                         <i class="fa-solid fa-comments fs-3"></i>
  115.                                                     </span>
  116.                                                     <span class="align-middle">Faq</span>
  117.                                                 </a>
  118.                                             </li>
  119.                                             <li class="sidebar-item {{ menu is defined and menu == 'ext-form' ? 'active' }}">
  120.                                                 <a class="sidebar-link" href="{{ path('advanced_search', {entity: 'form_template'}) }}">
  121.                                                     <span class="menu-icon">
  122.                                                         <i class="fa-solid fa-clipboard-question fs-3"></i>
  123.                                                     </span>
  124.                                                     <span class="align-middle">Questionnaires</span>
  125.                                                 </a>
  126.                                             </li>
  127.                                             <li class="sidebar-item {{ menu is defined and menu == 'document' ? 'active' }}">
  128.                                                 <a class="sidebar-link" href="{{ path('advanced_search', {entity: 'document'}) }}">
  129.                                                     <span class="menu-icon">
  130.                                                         <i class="fa-solid fa-file fs-3"></i>
  131.                                                     </span>
  132.                                                     <span class="align-middle">Documents</span>
  133.                                                 </a>
  134.                                             </li>
  135.                                         {% endif %}
  136.                                         {% if is_granted('ROLE_ADMIN') %}
  137.                                             <li class="sidebar-header">Administration CRM</li>
  138.                                             <li class="sidebar-item {{ menu is defined and menu == 'user_crm' ? 'active' }}">
  139.                                                 <a class="sidebar-link" href="{{ path('advanced_search', {entity: 'user_crm'}) }}">
  140.                                                     <span class="menu-icon">
  141.                                                         <i class="fa-solid fa-users fs-3"></i>
  142.                                                     </span>
  143.                                                     <span class="align-middle">Utilisateurs CRM</span>
  144.                                                 </a>
  145.                                             </li>
  146.                                             <li class="sidebar-item {{ menu is defined and menu == 'firm-group' ? 'active' }}">
  147.                                                 <a class="sidebar-link" href="{{ path('list_firm_group') }}">
  148.                                                     <span class="menu-icon">
  149.                                                         <i class="fa-solid fa-city fs-3"></i>
  150.                                                     </span>
  151.                                                     <span class="align-middle">Gestion Groupes entr.</span>
  152.                                                 </a>
  153.                                             </li>
  154.                                             <li class="sidebar-item {{ menu is defined and menu == 'sms' ? 'active' }}">
  155.                                                 <a class="sidebar-link" href="{{ path('sms_parameters') }}">
  156.                                                     <span class="menu-icon">
  157.                                                         <i class="fa-solid fa-sms fs-3"></i>
  158.                                                     </span>
  159.                                                     <span class="align-middle">Paramètres SMS</span>
  160.                                                 </a>
  161.                                             </li>
  162.                                             <li class="sidebar-item {{ menu is defined and menu == 'adm-log-event' ? 'active' }}">
  163.                                                 <a class="sidebar-link" href="{{ path('advanced_search', {entity: 'log_entry'}) }}">
  164.                                                     <span class="menu-icon">
  165.                                                         <i class="fa-solid fa-file-lines fs-3"></i>
  166.                                                     </span>
  167.                                                     <span class="align-middle">Journal des actions</span>
  168.                                                 </a>
  169.                                             </li>
  170.                                             <li class="sidebar-item {{ menu is defined and menu == 'adm-param-app' ? 'active' }}">
  171.                                                 <a class="sidebar-link" href="{{ path('parameter_list') }}">
  172.                                                     <span class="menu-icon">
  173.                                                         <i class="fa-solid fa-cogs fs-3"></i>
  174.                                                     </span>
  175.                                                     <span class="align-middle">Paramètres app</span>
  176.                                                 </a>
  177.                                             </li>
  178.                                             <li class="sidebar-item {{ menu is defined and menu == 'adm-message-sended' ? 'active' }}">
  179.                                                 <a class="sidebar-link" href="{{ path('advanced_search', {entity: 'message_sended'}) }}">
  180.                                                     <span class="menu-icon">
  181.                                                         <i class="fa-solid fa-paper-plane fs-3"></i>
  182.                                                     </span>
  183.                                                     <span class="align-middle">Messages envoyés</span>
  184.                                                 </a>
  185.                                             </li>
  186.                                             <li class="sidebar-item {{ menu is defined and menu == 'adm-message-template' ? 'active' }}">
  187.                                                 <a class="sidebar-link" href="{{ path('advanced_search', {entity: 'message_template'}) }}">
  188.                                                     <span class="menu-icon">
  189.                                                         <i class="fa-solid fa-file-lines fs-3"></i>
  190.                                                     </span>
  191.                                                     <span class="align-middle">Modèles message</span>
  192.                                                 </a>
  193.                                             </li>
  194.                                             <li class="sidebar-item">
  195.                                                 <a data-bs-target="#cotisations" data-bs-toggle="collapse" class="sidebar-link" aria-expanded="{{
  196.                                                     menu is defined and menu == 'adm-cotisation' ? 'true' : 'false'
  197.                                                 }}">
  198.                                                     <span class="menu-icon">
  199.                                                         <i class="fas fa-list fs-3"></i>
  200.                                                     </span>
  201.                                                     <span class="align-middle">Paramétrage cotisations</span>
  202.                                                 </a>
  203.                                                 <ul
  204.                                                         id="cotisations"
  205.                                                         class="sidebar-dropdown list-unstyled collapse{{
  206.                                                         menu is defined and menu == 'adm-cotisation' ? ' show'
  207.                                                         }}"
  208.                                                         data-bs-parent="#sidebar"
  209.                                                 >
  210.                                                     <li class="sidebar-item{{ submenu is defined and submenu == 'param_cotisation' ? ' active' }}">
  211.                                                         <a class="sidebar-link" href="{{ path('advanced_search', {entity: 'param_cotisation'}) }}">
  212.                                                                 <span class="menu-icon">
  213.                                                                     <i class="fas fa-circle"></i>
  214.                                                                 </span>
  215.                                                             <span class="align-middle">Cotisation</span>
  216.                                                         </a>
  217.                                                     </li>
  218.                                                     {% if is_granted('ROLE_PROGRAMMER') %}
  219.                                                         <li class="sidebar-item{{ submenu is defined and submenu == 'cotisation_type' ? ' active' }}">
  220.                                                             <a class="sidebar-link" href="{{ path('admin_cotisation_parameter_type') }}">
  221.                                                                     <span class="menu-icon">
  222.                                                                         <i class="fas fa-circle"></i>
  223.                                                                     </span>
  224.                                                                 <span class="align-middle">Types</span>
  225.                                                             </a>
  226.                                                         </li>
  227.                                                     {% endif %}
  228.                                                     <li class="sidebar-item{{ submenu is defined and submenu == 'param_cotisation_slice' ? ' active' }}">
  229.                                                         <a class="sidebar-link" href="{{ path('advanced_search', {entity: 'param_cotisation_slice'}) }}">
  230.                                                                 <span class="menu-icon">
  231.                                                                     <i class="fas fa-circle"></i>
  232.                                                                 </span>
  233.                                                             <span class="align-middle">Tranches</span>
  234.                                                         </a>
  235.                                                     </li>
  236.                                                 </ul>
  237.                                             </li>
  238.                                             <li class="sidebar-item">
  239.                                                 <a data-bs-target="#lists" data-bs-toggle="collapse" class="sidebar-link" aria-expanded="{{
  240.                                                     menu is defined and menu == 'adm-list' ? 'true' : 'false'
  241.                                                 }}">
  242.                                                     <span class="menu-icon">
  243.                                                         <i class="fas fa-list fs-3"></i>
  244.                                                     </span>
  245.                                                     <span class="align-middle">Gestion des listes</span>
  246.                                                 </a>
  247.                                                 <ul
  248.                                                         id="lists"
  249.                                                         class="sidebar-dropdown list-unstyled collapse{{
  250.                                                             menu is defined and menu == 'adm-list' ? ' show'
  251.                                                         }}"
  252.                                                         data-bs-parent="#sidebar"
  253.                                                 >
  254.                                                     <li class="sidebar-item{{ submenu is defined and submenu == 'region' ? ' active' }}">
  255.                                                         <a class="sidebar-link" href="{{ path('list_region') }}">
  256.                                                             <span class="menu-icon">
  257.                                                                 <i class="fas fa-circle"></i>
  258.                                                             </span>
  259.                                                             <span class="align-middle">Régions</span>
  260.                                                         </a>
  261.                                                     </li>
  262.                                                     <li class="sidebar-item{{ submenu is defined and submenu == 'departement' ? ' active' }}">
  263.                                                         <a class="sidebar-link" href="{{ path('list_departement') }}">
  264.                                                             <span class="menu-icon">
  265.                                                                 <i class="fas fa-circle"></i>
  266.                                                             </span>
  267.                                                             <span class="align-middle">Départements</span>
  268.                                                         </a>
  269.                                                     </li>
  270.                                                     <li class="sidebar-item{{ submenu is defined and submenu == 'commissions' ? ' active' }}">
  271.                                                         <a class="sidebar-link" href="{{ path('list_commission') }}">
  272.                                                             <span class="menu-icon">
  273.                                                                 <i class="fas fa-circle"></i>
  274.                                                             </span>
  275.                                                             <span class="align-middle">Commissions</span>
  276.                                                         </a>
  277.                                                     </li>
  278.                                                     <li class="sidebar-item{{ submenu is defined and submenu == 'commission-roles' ? ' active' }}">
  279.                                                         <a class="sidebar-link" href="{{ path('list_commission_role') }}">
  280.                                                             <span class="menu-icon">
  281.                                                                 <i class="fas fa-circle"></i>
  282.                                                             </span>
  283.                                                             <span class="align-middle">Commission rôles</span>
  284.                                                         </a>
  285.                                                     </li>
  286.                                                     {#
  287.                                                     <li class="sidebar-item{{ submenu is defined and submenu == 'offer-type' ? ' active' }}">
  288.                                                         <a class="sidebar-link" href="{{ path('list_offer_type') }}">
  289.                                                             <span class="menu-icon">
  290.                                                                 <i class="fas fa-circle"></i>
  291.                                                             </span>
  292.                                                             <span class="align-middle">Types d'offre</span>
  293.                                                         </a>
  294.                                                     </li>
  295.                                                     #}
  296.                                                     <li class="sidebar-item{{ submenu is defined and submenu == 'conseil-admin' ? ' active' }}">
  297.                                                         <a class="sidebar-link" href="{{ path('list_role_conseil_admin') }}">
  298.                                                             <span class="menu-icon">
  299.                                                                 <i class="fas fa-circle"></i>
  300.                                                             </span>
  301.                                                             <span class="align-middle">Conseil d'administration</span>
  302.                                                         </a>
  303.                                                     </li>
  304.                                                     <li class="sidebar-item{{ submenu is defined and submenu == 'tags' ? ' active' }}">
  305.                                                         <a class="sidebar-link" href="{{ path('list_tag') }}">
  306.                                                             <span class="menu-icon">
  307.                                                                 <i class="fas fa-circle"></i>
  308.                                                             </span>
  309.                                                             <span class="align-middle">Repères</span>
  310.                                                         </a>
  311.                                                     </li>
  312.                                                     <li class="sidebar-item{{ submenu is defined and submenu == 'firm-link-reason' ? ' active' }}">
  313.                                                         <a class="sidebar-link" href="{{ path('firm_link_reason') }}">
  314.                                                             <span class="menu-icon">
  315.                                                                 <i class="fas fa-circle"></i>
  316.                                                             </span>
  317.                                                             <span class="align-middle">Raison liaison entreprise</span>
  318.                                                         </a>
  319.                                                     </li>
  320.                                                 </ul>
  321.                                             </li>
  322.                                         {% endif %}
  323.                                     </ul>
  324.                                 </div>
  325.                             </div>
  326.                         </div>
  327.                     </div>
  328.                     <div class="simplebar-placeholder"></div>
  329.                 </div>
  330.                 <div class="simplebar-track simplebar-horizontal">
  331.                     <div class="simplebar-scrollbar"></div>
  332.                 </div>
  333.                 <div class="simplebar-track simplebar-vertical">
  334.                     <div class="simplebar-scrollbar"></div>
  335.                 </div>
  336.             </div>
  337.         </nav>
  338.     {% endif %}
  339. {% endif %}