templates/menu/menu.html.twig line 1

Open in your IDE?
  1. {% import "/macros/menu.html.twig" as menu %}
  2. {% if is_granted('ROLE_SUPER_ADMIN') %}
  3.     {{ menu.icon(path('parametre'), 'options-2-outline', 'Menu13') }}
  4.     {{ menu.icon(path('operator_index'), 'options-2-outline', 'Menu14') }}
  5. {% endif %}
  6. {% if is_granted('ROLE_MAINTENANCE_PARKING') %}
  7.     {{ menu.icon(path('liste_abris'), 'abri', 'Menu1') }}
  8. {% endif %}
  9. {% if not has_parameter_granted('sensorModeOnly') %}
  10.     {% if is_granted('ROLE_GESTIONNAIRE') %}
  11.         {{ menu.icon(path('liste_clients'), 'cycliste', 'Menu2') }}
  12.     {% endif %}
  13.     {% if is_granted('ROLE_COORDINATEUR') %}
  14.         {{ menu.icon(path('maintainer_list'), 'info', 'Menu3') }}
  15.     {% endif %}
  16. {% endif %}
  17. {% if is_granted('ROLE_ADMIN') %}
  18.     {{ menu.icon(path('liste_user'), 'people-outline', 'Menu4') }}
  19. {% endif %}
  20. {% if is_granted('ROLE_COORDINATEUR') and has_parameter_granted('stat_and_report') %}
  21.     {{ menu.icon(path('statistique'), 'add_chart_black_24dp', 'Menu5') }}
  22. {% endif %}
  23. <hr>
  24. {% if is_granted('ROLE_ADMIN') %}
  25.     {% if has_parameter_granted('fo') %}
  26.         {{ menu.icon(path('offre_liste'), 'grid-outline', 'Menu7') }}
  27.         {{ menu.icon(path('content_index', { 'templateFileName' : 'territory'}), 'settings-outline', 'Menu8') }}
  28.     {% endif %}
  29. {% endif %}
  30. {% if is_granted('ROLE_GESTIONNAIRE') %}
  31.     {% if has_parameter_granted('paiement_fo') %}
  32.         {{ menu.icon(path('liste_finances'), 'price', 'Menu9') }}
  33.     {% endif %}
  34.     {% if has_parameter_granted("badge") %}
  35.         {{ menu.icon(path('liste_commandes'), 'tarifs', 'Menu10') }}
  36.     {% endif %}
  37. {% endif %}
  38. <hr>
  39. {% if is_granted('ROLE_UTILISATEUR') %}
  40.     {{ menu.icon(path('user_my_account'), 'person-outline', 'Menu11') }}
  41. {% endif %}
  42. {{ menu.icon(path('logout'), 'deconnexion', 'Menu12', 'logout') }}
  43. <hr>
  44. <li>
  45.     <span class="nav_name version">Ver&nbsp;{{ get_parameter_value('version') }}</span>
  46. </li>