templates/_sidebar.html.twig line 1

Open in your IDE?
  1. <nav id="sidebar" class="sidebar" role="navigation" aria-label="Menu principal" tabindex="-1">
  2.     <ul class="sidebar-menu" data-widget="tree">
  3.         <li {% if menuItem == 'reporting_dashboard' %}class="active"{% endif %}>
  4.             <a aria-label="{{ 'sidebar_menu.dashboard'|trans }}" href="{{ path('reporting_dashboard_index') }}">
  5.                 <i class="fa fa-tachometer-alt"></i>
  6.                 <span>{{ 'sidebar_menu.dashboard'|trans }}</span>
  7.             </a>
  8.         </li>
  9.         {# REGISTRIES #}
  10.         <li class="header">
  11.             <span>Registres</span>
  12.             <ul class="sidebar-menu">
  13.                 <li {% if menuItem == 'registry_treatment' %}class="active"{% endif %}>
  14.                     <a aria-label="{{ 'sidebar_menu.registry_treatments'|trans }}" href="{{ path('registry_treatment_list') }}">
  15.                         <i class="fa fa-list"></i>
  16.                         <span>{{ 'sidebar_menu.registry_treatments'|trans }}</span>
  17.                     </a>
  18.                 </li>
  19.                 <li {% if menuItem == 'registry_contractor' %}class="active"{% endif %}>
  20.                     <a aria-label="{{ 'sidebar_menu.registry_contractors'|trans }}" href="{{ path('registry_contractor_list') }}">
  21.                         <i class="fa fa-address-card"></i>
  22.                         <span>{{ 'sidebar_menu.registry_contractors'|trans }}</span>
  23.                     </a>
  24.                 </li>
  25.                 {% if is_granted('ROLE_ADMIN') or app.user.collectivity.hasModuleTools == true %}
  26.                     <li {% if menuItem == 'registry_tool' %}class="active"{% endif %}>
  27.                         <a aria-label="Logiciels et supports" href="/logiciel-et-support/liste" >
  28.                             <i class="fa fa-briefcase"></i>
  29.                             <span>Logiciels et supports</span>
  30.                         </a>
  31.                     </li>
  32.                 {% endif %}
  33.                 <li {% if menuItem == 'registry_request' %}class="active"{% endif %}>
  34.                     <a aria-label="{{ 'sidebar_menu.registry_requests'|trans }}" href="{{ path('registry_request_list') }}">
  35.                         <i class="fa fa-users"></i>
  36.                         <span>{{ 'sidebar_menu.registry_requests'|trans }}</span>
  37.                     </a>
  38.                 </li>
  39.                 <li {% if menuItem == 'registry_violation' %}class="active"{% endif %}>
  40.                     <a aria-label="{{ 'sidebar_menu.registry_violations'|trans }}" href="{{ path('registry_violation_list') }}">
  41.                         <i class="fa fa-exclamation-circle"></i>
  42.                         <span>{{ 'sidebar_menu.registry_violations'|trans }}</span>
  43.                     </a>
  44.                 </li>
  45.             </ul>
  46.         </li>
  47.         {# PROOF #}
  48.         <li class="header">
  49.             <span>Preuves</span>
  50.             <ul class="sidebar-menu">
  51.                 <li {% if menuItem == 'registry_proof' %}class="active"{% endif %}>
  52.                     <a aria-label="{{ 'sidebar_menu.registry_proofs'|trans }}" href="{{ path('registry_proof_list') }}">
  53.                         <i class="fa fa-file"></i>
  54.                         <span>{{ 'sidebar_menu.registry_proofs'|trans }}</span>
  55.                     </a>
  56.                 </li>
  57.             </ul>
  58.         </li>
  59.         {# ACTIONS #}
  60.         <li class="header">
  61.             <span>Actions</span>
  62.             <ul class="sidebar-menu">
  63.                 <li {% if menuItem == 'registry_mesurement' %}class="active"{% endif %}>
  64.                     <a aria-label="{{ 'sidebar_menu.registry_mesurements'|trans }}" href="{{ path('registry_mesurement_list') }}">
  65.                         <i class="fa fa-adjust"></i>
  66.                         <span>{{ 'sidebar_menu.registry_mesurements'|trans }}</span>
  67.                     </a>
  68.                 </li>
  69.                 <li {% if menuItem == 'registry_mesurement_action_plan' %}class="active"{% endif %}>
  70.                     <a aria-label="{{ 'sidebar_menu.registry_action_plan'|trans }}" href="{{ path('registry_mesurement_action_plan') }}">
  71.                         <i class="fa fa-crosshairs"></i>
  72.                         <span>{{ 'sidebar_menu.registry_action_plan'|trans }}</span>
  73.                     </a>
  74.                 </li>
  75.             </ul>
  76.         </li>
  77.         {# AIPD #}
  78.         {% if is_granted('ROLE_ADMIN') or app.user.collectivity.hasModuleConformiteTraitement == true %}
  79.         <li class="header">
  80.             <span>Analyse d'impact</span>
  81.             <ul class="sidebar-menu">{% endif %}
  82.                 {% if is_granted('ROLE_ADMIN') %}
  83.                     <li {% if menuItem == 'aipd_modele_analyse' %}class="active"{% endif %}>
  84.                         <a aria-label="{{ 'sidebar_menu.aipd_modele'|trans }}" href="{{ path('aipd_modele_analyse_list') }}">
  85.                             <i class="fa fa-chart-bar"></i>
  86.                             <span>{{ 'sidebar_menu.aipd_modele'|trans }}</span>
  87.                         </a>
  88.                     </li>
  89.                     <li {% if menuItem == 'aipd_mesure_protection' %}class="active"{% endif %}>
  90.                         <a aria-label="{{ 'sidebar_menu.aipd_mesure_protection'|trans }}" href="{{ path('aipd_mesure_protection_list') }}">
  91.                             <i class="fa fa-chart-bar"></i>
  92.                             <span>{{ 'sidebar_menu.aipd_mesure_protection'|trans }}</span>
  93.                         </a>
  94.                     </li>
  95.                 {% endif %}
  96.                 {% if is_granted('ROLE_ADMIN') or app.user.collectivity.hasModuleConformiteTraitement == true %}
  97.                 <li {% if menuItem == 'aipd_analyse_impact' %}class="active"{% endif %}>
  98.                     <a aria-label="{{ 'sidebar_menu.aipd_analyse_impact'|trans }}" href="{{ path('aipd_analyse_impact_list') }}">
  99.                         <i class="fa fa-chart-bar"></i>
  100.                         <span>{{ 'sidebar_menu.aipd_analyse_impact'|trans }}</span>
  101.                     </a>
  102.                 </li>
  103.             </ul>
  104.         </li>
  105.         {% endif %}
  106.         {# REPORTING #}
  107.         <li class="header">
  108.             <span>Rapports</span>
  109.             <ul class="sidebar-menu">
  110.                 <li {% if menuItem == 'maturity_survey' %}class="active"{% endif %}>
  111.                     <a aria-label="{{ 'sidebar_menu.maturity_survey'|trans }}" href="{{ path('maturity_survey_list') }}">
  112.                         <i class="fa fa-chart-bar"></i>
  113.                         <span>{{ 'sidebar_menu.maturity_survey'|trans }}</span>
  114.                     </a>
  115.                 </li>
  116.                 {% if is_granted('ROLE_ADMIN') %}
  117.                     <li {% if menuItem == 'maturity_referentiel' %}class="active"{% endif %}>
  118.                         <a aria-label="{{ 'sidebar_menu.maturity_referentiel'|trans }}" href="{{ path('maturity_referentiel_list') }}">
  119.                             <i class="fa fa-book"></i>
  120.                             <span>{{ 'sidebar_menu.maturity_referentiel'|trans }}</span>
  121.                         </a>
  122.                     </li>
  123.                 {% endif %}
  124.                 <li {% if menuItem == 'reporting_review' %}class="active"{% endif %}>
  125.                     <a aria-label="{{ 'sidebar_menu.reporting_review'|trans }}" href="{{ path('reporting_review_index', {'id': app.user.collectivity.id}) }}">
  126.                         <i class="fa fa-clipboard-list"></i>
  127.                         <span>{{ 'sidebar_menu.reporting_review'|trans }}</span>
  128.                     </a>
  129.                 </li>
  130.             </ul>
  131.         </li>
  132.         {# CONFORMITE #}
  133.         {% if is_granted('ROLE_ADMIN') or app.user.collectivity.hasModuleConformiteTraitement == true or app.user.collectivity.hasModuleConformiteOrganisation == true %}
  134.             <li class="header">
  135.                 <span>Conformité</span>
  136.                 <ul class="sidebar-menu">
  137.                     {% if is_granted('ROLE_ADMIN') or app.user.collectivity.hasModuleConformiteTraitement %}
  138.                         <li {% if menuItem == 'registry_conformite_traitement' %}class="active"{% endif %}>
  139.                             <a aria-label="{{ 'sidebar_menu.conformite_traitements'|trans }}" href="{{ path('registry_conformite_traitement_list') }}">
  140.                                 <i class="fa fa-clipboard-list"></i>
  141.                                 <span>{{ 'sidebar_menu.conformite_traitements'|trans }}</span>
  142.                             </a>
  143.                         </li>
  144.                     {% endif %}
  145.                     {% if is_granted('ROLE_ADMIN') or app.user.collectivity.hasModuleConformiteOrganisation %}
  146.                         <li  {% if menuItem == 'registry_conformite_organisation' %}class="active"{% endif %}>
  147.                             <a aria-label="Conformité de la structure" href="{{ path('registry_conformite_organisation_list') }}">
  148.                                 <i class="fa fa-clipboard-list"></i>
  149.                                 <span>{{ 'sidebar_menu.conformite_structure'|trans }}</span>
  150.                             </a>
  151.                         </li>
  152.                     {% endif %}
  153.                 </ul>
  154.             </li>
  155.         {% endif %}
  156.         {# CONFIGURATION #}
  157.         {% if is_granted('ROLE_ADMIN') %}
  158.             <li class="header">
  159.                 <span>Configuration</span>
  160.                 <ul class="sidebar-menu">
  161.                     {% if is_granted('ROLE_ADMIN') %}
  162.                         <li {% if menuItem == 'registry_treatment_configuration' %}class="active"{% endif %}>
  163.                             <a aria-label="{{ 'sidebar_menu.configuration_treatments'|trans }}" href="{{ path('registry_treatment_configuration') }}">
  164.                                 <i class="fa fa-clipboard-list"></i>
  165.                                 <span>{{ 'sidebar_menu.configuration_treatments'|trans }}</span>
  166.                             </a>
  167.                         </li>
  168.                     {% endif %}
  169.                 </ul>
  170.             </li>
  171.         {% endif %}
  172.         {# DOCUMENTATION #}
  173.         <li class="header">
  174.             <span>Centre d'aide</span>
  175.             <ul class="sidebar-menu">
  176.                 <li {% if menuItem == 'documentation' %}class="active"{% endif %}>
  177.                     <a aria-label="{{ 'sidebar_menu.documentation'|trans }}" href="{{ path('documentation_document_index') }}">
  178.                         <i class="fa fa-file"></i>
  179.                         <span>{{ 'sidebar_menu.documentation'|trans }}</span>
  180.                     </a>
  181.                 </li>
  182.             </ul>
  183.         </li>
  184.         {# ADMINISTRATION #}
  185.         <li class="header">
  186.             <span>Espace d'administration</span>
  187.             <ul class="sidebar-menu">
  188.                 {% if is_granted('ROLE_REFERENT') %}
  189.                     {# Referent is not allowed to duplicate#}
  190.                     {% if is_granted('ROLE_ADMIN') %}
  191.                         <li {% if menuItem == 'admin_duplication' %}class="active"{% endif %}>
  192.                             <a aria-label="{{ 'sidebar_menu.admin_duplication'|trans }}" href="{{ path('admin_duplication_new') }}">
  193.                                 <i class="fa fa-clone"></i>
  194.                                 <span>{{ 'sidebar_menu.admin_duplication'|trans }}</span>
  195.                             </a>
  196.                         </li>
  197.                     {% endif %}
  198.                     <li {% if menuItem == 'user_collectivity' %}class="active"{% endif %}>
  199.                         <a aria-label="{{ 'sidebar_menu.user_collectivities'|trans }}" href="{{ path('user_collectivity_list') }}">
  200.                             <i class="fa fa-home"></i>
  201.                             <span>{{ 'sidebar_menu.user_collectivities'|trans }}</span>
  202.                         </a>
  203.                     </li>
  204.                     <li {% if menuItem == 'user_user' %}class="active"{% endif %}>
  205.                         <a aria-label="{{ 'sidebar_menu.user_users'|trans }}" href="{{ path('user_user_list') }}">
  206.                             <i class="fa fa-users"></i>
  207.                             <span>{{ 'sidebar_menu.user_users'|trans }}</span>
  208.                         </a>
  209.                     </li>
  210.                     {# Referent is not allowed to journalisation #}
  211.                     {% if is_granted('ROLE_ADMIN') %}
  212.                         <li {% if menuItem == 'reporting_journalisation' %}class="active"{% endif %}>
  213.                             <a aria-label="{{ 'sidebar_menu.reporting_journalisation'|trans }}" href="{{ path('reporting_journalisation_index') }}">
  214.                                 <i class="fa fa-list"></i>
  215.                                 <span>{{ 'sidebar_menu.reporting_journalisation'|trans }}</span>
  216.                             </a>
  217.                         </li>
  218.                     {% endif %}
  219.                     {# If not an admin nor a referent & is write granted, let user edit informations #}
  220.                 {% else %}
  221.                     <li {% if menuItem == 'user_profile_collectivity' %}class="active"{% endif %}>
  222.                         <a aria-label="{{ 'sidebar_menu.user_profile_collectivity'|trans }}" href="{{ path('user_profile_collectivity_show') }}">
  223.                             <i class="fa fa-home"></i>
  224.                             <span>{{ 'sidebar_menu.user_profile_collectivity'|trans }}</span>
  225.                         </a>
  226.                     </li>
  227.                 {% endif %}
  228.                 {% if not is_granted('ROLE_ADMIN') %}
  229.                     <li {% if menuItem == 'user_profile_user' %}class="active"{% endif %}>
  230.                         <a aria-label="{{ 'sidebar_menu.user_profile_user'|trans }}" href="{{ path('user_profile_user_edit') }}">
  231.                             <i class="fa fa-user"></i>
  232.                             <span>{{ 'sidebar_menu.user_profile_user'|trans }}</span>
  233.                         </a>
  234.                     </li>
  235.                 {% endif %}
  236.             </ul>
  237.         </li>
  238.         <li class="sidebar-logo">
  239.             <a aria-label="logo" href="{{ app_image_sidebar_bottom_target_url }}" target="_blank" rel="nofollow noreferrer noopener">
  240.                 <img src="{{ asset(app_image_sidebar_bottom_path) }}" alt="Logo du provider Madis" />
  241.             </a>
  242.         </li>
  243.     </ul>
  244. </nav>