templates/includes/sidebar.html.twig line 1

Open in your IDE?
  1. <aside class="admin-sidebar">
  2.     <div class="admin-sidebar-brand">
  3.         <!-- begin sidebar branding-->
  4.         <img class="admin-brand-logo" src="{{ asset('/assets/img/dataplusrh.png') }}" width="40" alt="atmos Logo">
  5.         <!-- end sidebar branding-->
  6.     </div>
  7.     <div class="admin-sidebar-wrapper js-scrollbar">
  8.         <ul class="menu">
  9.             {% if is_granted('ROLE_MANAGER') %}
  10.                 {% if is_granted('ROLE_DPO') %}
  11.                     <li class="menu-item {% if app.request.attributes.get('_route') == 'manager_managers' %}active{% endif %}">
  12.                         <a href="{{ path('manager_managers') }}" class="menu-link">
  13.                             <span class="menu-label">
  14.                                 <span class="menu-name">Délégués
  15.                                 </span>
  16.                             </span>
  17.                             <span class="menu-icon">
  18.                                 <i class="icon-placeholder mdi mdi-account-multiple "></i>
  19.                             </span>
  20.                         </a>
  21.                     </li>
  22.                 {% endif %}
  23.                 <li class="menu-item {% if app.request.attributes.get('_route') == 'manager_users' %}active{% endif %}">
  24.                     <a href="{{ path('manager_users') }}" class="menu-link">
  25.                         <span class="menu-label">
  26.                             <span class="menu-name">Sociétés
  27.                             </span>
  28.                         </span>
  29.                         <span class="menu-icon">
  30.                             <i class="icon-placeholder mdi mdi-office-building "></i>
  31.                         </span>
  32.                     </a>
  33.                 </li>
  34.                 <li class="menu-item {% if app.request.attributes.get('_route') == 'manager_documents' %}active{% endif %}">
  35.                     <a href="{{ path('manager_documents') }}" class="menu-link">
  36.                         <span class="menu-label">
  37.                             <span class="menu-name">Base documentaire
  38.                             </span>
  39.                         </span>
  40.                         <span class="menu-icon">
  41.                             <i class="icon-placeholder mdi mdi-file-document-box-multiple "></i>
  42.                         </span>
  43.                     </a>
  44.                 </li>
  45.                 {% if is_granted('ROLE_DPO') %}
  46.                     <li class="menu-item {% if app.request.attributes.get('_route') == 'manager_partners' %}active{% endif %}">
  47.                         <a href="{{ path('manager_partners') }}" class="menu-link">
  48.                             <span class="menu-label">
  49.                                 <span class="menu-name">Partenaires
  50.                                 </span>
  51.                             </span>
  52.                             <span class="menu-icon">
  53.                                 <i class="icon-placeholder mdi mdi-briefcase-account "></i>
  54.                             </span>
  55.                         </a>
  56.                     </li>
  57.                     <li class="menu-item {% if app.request.attributes.get('_route') == 'manager_infos' %}active{% endif %}">
  58.                         <a href="{{ path('manager_infos') }}" class="menu-link">
  59.                             <span class="menu-label">
  60.                                 <span class="menu-name">Infos
  61.                                 </span>
  62.                             </span>
  63.                             <span class="menu-icon">
  64.                                 <i class="icon-placeholder mdi mdi-newspaper "></i>
  65.                             </span>
  66.                         </a>
  67.                     </li>
  68.                 {% endif %}
  69.                 <li class="menu-item {% if app.request.attributes.get('_route') == 'manager_systems' %}active{% endif %}">
  70.                     <a href="{{ path('manager_systems') }}" class="menu-link">
  71.                         <span class="menu-label">
  72.                             <span class="menu-name">Mesures techniques standards
  73.                             </span>
  74.                         </span>
  75.                         <span class="menu-icon">
  76.                             <i class="icon-placeholder mdi mdi-sitemap "></i>
  77.                         </span>
  78.                     </a>
  79.                 </li>
  80.                 <li class="menu-item {% if app.request.attributes.get('_route') == 'manager_treatments' %}active{% endif %}">
  81.                     <a href="{{ path('manager_treatments') }}" class="menu-link">
  82.                         <span class="menu-label">
  83.                             <span class="menu-name">Traitements standards
  84.                             </span>
  85.                         </span>
  86.                         <span class="menu-icon">
  87.                             <i class="icon-placeholder mdi mdi-database "></i>
  88.                         </span>
  89.                     </a>
  90.                 </li>
  91.                 <li class="menu-item {% if app.request.attributes.get('_route') == 'manager_subcontractors' %}active{% endif %}">
  92.                     <a href="{{ path('manager_subcontractors') }}" class="menu-link">
  93.                         <span class="menu-label">
  94.                             <span class="menu-name">Sous-traitants standards
  95.                             </span>
  96.                         </span>
  97.                         <span class="menu-icon">
  98.                             <i class="icon-placeholder mdi mdi-account-multiple "></i>
  99.                         </span>
  100.                     </a>
  101.                 </li>
  102.                 <li class="menu-item {% if app.request.attributes.get('_route') == 'manager_actions' %}active{% endif %}">
  103.                     <a href="{{ path('manager_actions') }}" class="menu-link">
  104.                         <span class="menu-label">
  105.                             <span class="menu-name">Actions standards
  106.                             </span>
  107.                         </span>
  108.                         <span class="menu-icon">
  109.                             <i class="icon-placeholder mdi mdi-map-legend "></i>
  110.                         </span>
  111.                     </a>
  112.                 </li>
  113.                 <li class="menu-item {% if app.request.attributes.get('_route') == 'manager_trainings' %}active{% endif %}">
  114.                     <a href="{{ path('manager_trainings') }}" class="menu-link">
  115.                             <span class="menu-label">
  116.                                 <span class="menu-name">Questionnaires
  117.                                 </span>
  118.                             </span>
  119.                         <span class="menu-icon">
  120.                                 <i class="icon-placeholder mdi mdi-newspaper "></i>
  121.                             </span>
  122.                     </a>
  123.                 </li>
  124.                 <li class="menu-item {% if app.request.attributes.get('_route') == 'manager_current_subscriptions' %}active{% endif %}">
  125.                     <a href="{{ path('manager_current_subscriptions') }}" class="menu-link">
  126.                             <span class="menu-label">
  127.                                 <span class="menu-name">Abonnements
  128.                                 </span>
  129.                             </span>
  130.                         <span class="menu-icon">
  131.                                 <i class="icon-placeholder mdi mdi-book-outline"></i>
  132.                             </span>
  133.                     </a>
  134.                 </li>
  135.             {% else %}
  136.                 <li class="menu-item {% if app.request.attributes.get('_route') == 'user_homepage' %}active{% endif %}">
  137.                     <a href="{{ path('user_homepage') }}" class="menu-link">
  138.                         <span class="menu-label">
  139.                             <span class="menu-name">{{ 'tableau_de_bord'|trans }}
  140.                             </span>
  141.                         </span>
  142.                         <span class="menu-icon">
  143.                             <i class="icon-placeholder mdi mdi-home "></i>
  144.                         </span>
  145.                     </a>
  146.                 </li>
  147.                 <li class="menu-item {% if app.request.attributes.get('_route') == 'user_treatments' %}active{% endif %}">
  148.                     <a href="{{ path('user_treatments') }}" class="open-dropdown menu-link">
  149.                         <span class="menu-label">
  150.                             <span class="menu-name">{{ 'registre_des_traitements_menu'|trans|raw }}
  151.                             </span>
  152.                         </span>
  153.                         <span class="menu-icon">
  154.                             <i class="icon-placeholder mdi mdi-database "></i>
  155.                         </span>
  156.                     </a>
  157.                     <ul class="sub-menu">
  158.                         <li class="menu-item">
  159.                             <a href="{{ path('user_treatments') }}" class=" menu-link">
  160.                             <span class="menu-label">
  161.                                 <span class="menu-name">
  162.                                     {{ 'mes_traitements'|trans }}
  163.                                 </span>
  164.                             </span>
  165.                             </a>
  166.                         </li>
  167.                         <li class="menu-item">
  168.                             <a href="{{ path('user_treatments_add') }}" class=" menu-link">
  169.                             <span class="menu-label">
  170.                                 <span class="menu-name">
  171.                                     {{ 'crer_un_traitement'|trans }}
  172.                                 </span>
  173.                             </span>
  174.                             </a>
  175.                         </li>
  176.                         <li class="menu-item">
  177.                             <a href="{{ path('user_treatments_export') }}" target="_blank" class=" menu-link">
  178.                             <span class="menu-label">
  179.                                 <span class="menu-name">
  180.                                     {{ 'imprimer_mon_registre'|trans }}
  181.                                 </span>
  182.                             </span>
  183.                             </a>
  184.                         </li>
  185.                         <li class="menu-item">
  186.                             <a href="{{ path('user_treatments_export_xlsx') }}" target="_blank" class=" menu-link">
  187.                             <span class="menu-label">
  188.                                 <span class="menu-name">
  189.                                     {{ 'exporter_mon_registre'|trans }}
  190.                                 </span>
  191.                             </span>
  192.                             </a>
  193.                         </li>
  194.                         {% if app.user.user.mainGroupAgency %}
  195.                             <li class="menu-item">
  196.                                 <a href="{{ path('user_treatments_std') }}" class=" menu-link">
  197.                                 <span class="menu-label">
  198.                                     <span class="menu-name">
  199.                                         {{ 'traitements_standards'|trans }}
  200.                                     </span>
  201.                                 </span>
  202.                                 </a>
  203.                             </li>
  204.                         {% endif %}
  205.                         {% if app.user.user.parentUser %}
  206.                             <li class="menu-item">
  207.                                 <a href="{{ path('user_treatments_group') }}" class=" menu-link">
  208.                                 <span class="menu-label">
  209.                                     <span class="menu-name">
  210.                                         {{ 'traitements_du_groupe'|trans }}
  211.                                     </span>
  212.                                 </span>
  213.                                 </a>
  214.                             </li>
  215.                         {% endif %}
  216.                     </ul>
  217.                 </li>
  218.                 <li class="menu-item {% if app.request.attributes.get('_route') == 'user_subcontractors' %}active{% endif %}">
  219.                     <a href="{{ path('user_data_processing') }}" class="menu-link">
  220.                         <span class="menu-label">
  221.                             <span class="menu-name">{{ 'registre_des_soustraitants_menu'|trans|raw }}
  222.                             </span>
  223.                         </span>
  224.                         <span class="menu-icon">
  225.                             <i class="icon-placeholder mdi mdi-account-multiple "></i>
  226.                         </span>
  227.                     </a>
  228.                 </li>
  229.                 <li class="menu-item {% if app.request.attributes.get('_route') == 'user_incidents' %}active{% endif %}">
  230.                     <a href="{{ path('user_incidents') }}" class="open-dropdown menu-link">
  231.                         <span class="menu-label">
  232.                             <span class="menu-name">{{ 'registre_des_incidents_menu'|trans|raw }}
  233.                             </span>
  234.                         </span>
  235.                         <span class="menu-icon">
  236.                             <i class="icon-placeholder mdi mdi-alert "></i>
  237.                         </span>
  238.                     </a>
  239.                     <ul class="sub-menu">
  240.                         <li class="menu-item">
  241.                             <a href="{{ path('user_incidents') }}" class=" menu-link">
  242.                             <span class="menu-label">
  243.                                 <span class="menu-name">
  244.                                     {{ 'mes_incidents'|trans }}
  245.                                 </span>
  246.                             </span>
  247.                             </a>
  248.                         </li>
  249.                         <li class="menu-item">
  250.                             <a href="{{ path('user_incidents_add') }}" class=" menu-link">
  251.                             <span class="menu-label">
  252.                                 <span class="menu-name">
  253.                                     {{ 'dclarer_un_incident'|trans }}
  254.                                 </span>
  255.                             </span>
  256.                             </a>
  257.                         </li>
  258.                         <li class="menu-item">
  259.                             <a href="{{ path('user_incidents_export') }}" target="_blank" class=" menu-link">
  260.                             <span class="menu-label">
  261.                                 <span class="menu-name">
  262.                                     {{ 'imprimer_mon_registre'|trans }}
  263.                                 </span>
  264.                             </span>
  265.                             </a>
  266.                         </li>
  267.                     </ul>
  268.                 </li>
  269.                 <li class="menu-item {% if app.request.attributes.get('_route') == 'user_systems' %}active{% endif %}">
  270.                     <a href="{{ path('user_systems') }}" class="open-dropdown menu-link">
  271.                         <span class="menu-label">
  272.                             <span class="menu-name">{{ 'cartographie_du_systme_dinformation'|trans|raw }}
  273.                             </span>
  274.                         </span>
  275.                         <span class="menu-icon">
  276.                             <i class="icon-placeholder mdi mdi-sitemap "></i>
  277.                         </span>
  278.                     </a>
  279.                     <ul class="sub-menu">
  280.                         <li class="menu-item">
  281.                             <a href="{{ path('user_systems') }}" class=" menu-link">
  282.                             <span class="menu-label">
  283.                                 <span class="menu-name">
  284.                                     {{ 'mon_systme_dinformation'|trans }}
  285.                                 </span>
  286.                             </span>
  287.                             </a>
  288.                         </li>
  289.                         <li class="menu-item">
  290.                             <a href="{{ path('user_systems_export') }}" target="_blank" class=" menu-link">
  291.                             <span class="menu-label">
  292.                                 <span class="menu-name">
  293.                                     {{ 'imprimer_la_cartographie'|trans }}
  294.                                 </span>
  295.                             </span>
  296.                             </a>
  297.                         </li>
  298.                         {% if app.user.user.mainGroupAgency %}
  299.                             <li class="menu-item">
  300.                                 <a href="{{ path('user_systems_group') }}" class=" menu-link">
  301.                                 <span class="menu-label">
  302.                                     <span class="menu-name">
  303.                                         {{ 'cartographie_du_si_groupe'|trans }}
  304.                                     </span>
  305.                                 </span>
  306.                                 </a>
  307.                             </li>
  308.                         {% endif %}
  309.                         {% if app.user.user.mainGroupAgency %}
  310.                             <li class="menu-item">
  311.                                 <a href="{{ path('user_systems_group_export') }}" target="_blank" class=" menu-link">
  312.                                     <span class="menu-label">
  313.                                         <span class="menu-name">
  314.                                             {{ 'imprimer_la_cartographie_groupe'|trans }}
  315.                                         </span>
  316.                                     </span>
  317.                                 </a>
  318.                             </li>
  319.                         {% endif %}
  320.                     </ul>
  321.                 </li>
  322.                 <li class="menu-item {% if app.request.attributes.get('_route') == 'user_exercisingclaims' %}active{% endif %}">
  323.                     <a href="{{ path('user_exercisingclaims') }}" class="open-dropdown menu-link">
  324.                         <span class="menu-label">
  325.                             <span class="menu-name">{{ 'gestion_des_droits'|trans }}
  326.                             </span>
  327.                         </span>
  328.                         <span class="menu-icon">
  329.                             <i class="icon-placeholder mdi mdi-account-settings"></i>
  330.                         </span>
  331.                     </a>
  332.                     <ul class="sub-menu">
  333.                         <li class="menu-item">
  334.                             <a href="{{ path('user_exercisingclaims') }}" class=" menu-link">
  335.                             <span class="menu-label">
  336.                                 <span class="menu-name">
  337.                                     {{ 'mes_demandes_dexercices_des_droits'|trans }}
  338.                                 </span>
  339.                             </span>
  340.                             </a>
  341.                         </li>
  342.                         <li class="menu-item">
  343.                             <a href="{{ path('user_exercisingclaims_add') }}" class=" menu-link">
  344.                             <span class="menu-label">
  345.                                 <span class="menu-name">
  346.                                     {{ 'crer_une_demande'|trans }}
  347.                                 </span>
  348.                             </span>
  349.                             </a>
  350.                         </li>
  351.                     </ul>
  352.                 </li>
  353.                 <li class="menu-item {% if app.request.attributes.get('_route') == 'user_actions' %}active{% endif %}">
  354.                     <a href="{{ path('user_actions') }}" class="open-dropdown menu-link">
  355.                         <span class="menu-label">
  356.                             <span class="menu-name">{{ 'plan_dactions_menu'|trans|raw }}
  357.                             </span>
  358.                         </span>
  359.                         <span class="menu-icon">
  360.                             <i class="icon-placeholder mdi mdi-map-legend "></i>
  361.                         </span>
  362.                     </a>
  363.                     <ul class="sub-menu">
  364.                         <li class="menu-item">
  365.                             <a href="{{ path('user_actions') }}" class=" menu-link">
  366.                             <span class="menu-label">
  367.                                 <span class="menu-name">
  368.                                     {{ 'mes_actions'|trans }}
  369.                                 </span>
  370.                             </span>
  371.                             </a>
  372.                         </li>
  373.                         <li class="menu-item">
  374.                             <a href="{{ path('user_actions_export') }}" target="_blank" class=" menu-link">
  375.                             <span class="menu-label">
  376.                                 <span class="menu-name">
  377.                                     {{ 'imprimer_mon_plan_dactions'|trans }}
  378.                                 </span>
  379.                             </span>
  380.                             </a>
  381.                         </li>
  382.                     </ul>
  383.                 </li>
  384.                 <li class="menu-item {% if app.request.attributes.get('_route') == 'user_documents' %}active{% endif %}">
  385.                     <a href="{{ path('user_documents') }}" class="menu-link">
  386.                         <span class="menu-label">
  387.                             <span class="menu-name">{{ 'base_documentaire'|trans }}
  388.                             </span>
  389.                         </span>
  390.                         <span class="menu-icon">
  391.                             <i class="icon-placeholder mdi mdi-file-document-box-multiple "></i>
  392.                         </span>
  393.                     </a>
  394.                 </li>
  395.                 <li class="menu-item {% if app.request.attributes.get('_route') == 'user_trainings' %}active{% endif %}">
  396.                     <a href="{{ path('user_trainings') }}" class="menu-link">
  397.                             <span class="menu-label">
  398.                                 <span class="menu-name">{{ 'formation_des_quipes'|trans }}
  399.                                 </span>
  400.                             </span>
  401.                         <span class="menu-icon">
  402.                                 <i class="icon-placeholder mdi mdi-newspaper "></i>
  403.                             </span>
  404.                     </a>
  405.                 </li>
  406.                 {% if app.user.user.childrenUsers|length %}
  407.                     <li class="menu-item {% if app.request.attributes.get('_route') == 'user_users' %}active{% endif %}">
  408.                         <a href="{{ path('user_users') }}" class="menu-link">
  409.                         <span class="menu-label">
  410.                             <span class="menu-name">{{ 'comptes_rattachs'|trans }}
  411.                             </span>
  412.                         </span>
  413.                             <span class="menu-icon">
  414.                             <i class="icon-placeholder mdi mdi-office-building "></i>
  415.                         </span>
  416.                         </a>
  417.                     </li>
  418.                 {% endif %}
  419.                 <li class="menu-item mt-auto">
  420.                     <div class="menu-link">
  421.                         <a href="{{ path('user_account') }}" class="btn btn-secondary w-100 py-2">{{ 'mon_profil'|trans }}</a>
  422.                     </div>
  423.                 </li>
  424.                 {% if is_granted('ROLE_PREVIOUS_ADMIN') %}
  425.                     <li class="menu-item mt-auto px-3">
  426.                         <b><h5 class="mt-5">{{ app.user.user.companyName }}</h5></b>
  427.                         <a href="{{ path('default_homepage') }}?_switch_user=_exit">
  428.                             <div class="alert alert-warning fade show" role="alert">
  429.                                 Vous êtes actuellement substitué à ce compte client. <u>Cliquez ici pour retourner à votre compte</u>
  430.                             </div>
  431.                         </a>
  432.                     </li>
  433.                 {% endif %}
  434.             {% endif %}
  435.         </ul>
  436.     </div>
  437. </aside>