templates/_MENU.html.twig line 1

Open in your IDE?
  1. <nav class="navbar navbar-expand-lg bg-light">
  2.     <div class="container-fluid">
  3.         <a class="navbar-brand" href="{{ path('app_dashboard') }}">LVC</a>
  4.         <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
  5.             <span class="navbar-toggler-icon"></span>
  6.         </button>
  7.         <div class="collapse navbar-collapse" id="navbarNavDropdown">
  8.             <ul class="navbar-nav">
  9.                 {% if is_granted("IS_AUTHENTICATED_FULLY") %}
  10.                 <li class="nav-item">
  11.                     <a class="nav-link active" aria-current="page" href="{{ path('app_dashboard') }}">Tableau de bord</a>
  12.                 </li>
  13.                     <li class="nav-item">
  14.                         <a class="nav-link" aria-current="page" href="{{ path('app_documentation') }}">Documentation</a>
  15.                     </li>
  16.                 {% endif %}
  17.                 {% if is_granted("ROLE_ADMIN") %}
  18.                 <li class="nav-item dropdown">
  19.                     <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
  20.                         Admin
  21.                     </a>
  22.                     <ul class="dropdown-menu">
  23.                         <li><a class="dropdown-item" href="{{ path('app_admin_marque_index') }}">Marques</a></li>
  24.                         <li><a class="dropdown-item" href="{{ path('app_admin_produit_index') }}">Produits</a></li>
  25.                         <li><a class="dropdown-item" href="{{ path('app_admin_vendeur_index') }}">Vendeurs</a></li>
  26.                         <li><a class="dropdown-item" href="{{ path('app_admin_url_index') }}">Urls</a></li>
  27.                         <li><a class="dropdown-item" href="{{ path('app_crawl') }}">Crawl</a></li>
  28.                         <li><a class="dropdown-item" href="{{ path('app_crawl_test_url_filtre') }}">Tester une Url</a></li>
  29.                         <li><a class="dropdown-item" href="{{ path('app_action_crud_index') }}">Actions spécifique</a></li>
  30.                         <li><a class="dropdown-item" href="{{ path('app_admin_utilisateur_index') }}">Utilisateurs</a></li>
  31.                         <li><a class="dropdown-item" href="{{ path('app_admin_configuration_index') }}">Configuration</a></li>
  32.                         <li><a class="dropdown-item" href="{{ path('app_admin_documentation_index') }}">Documentation</a></li>
  33.                     </ul>
  34.                 </li>
  35.                 {% endif %}
  36.                 {% if is_granted("IS_AUTHENTICATED_FULLY") %}
  37.                     <li class="nav-item"><a class="nav-link" href="{{ path("app_logout") }}">Déconnexion</a></li>
  38.                 {% else %}
  39.                     <li class="nav-item"><a  class="nav-link" href="{{ path("app_login") }}">Connexion</a></li>
  40.                 {% endif %}
  41.             </ul>
  42.         </div>
  43.     </div>
  44. </nav>