templates/include/_nav.html.twig line 1

Open in your IDE?
  1. <nav class="navbar navbar-expand-lg navbar-light">
  2.     <div class="container-fluid d-flex">
  3.         <div class="row align-self-center">
  4.             <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
  5.                 <span class="navbar-toggler-icon"></span>
  6.             </button>
  7.             <div class="collapse navbar-collapse" id="navbarSupportedContent">
  8.                 <ul class="navbar-nav text-center">
  9.                     <img src="/assets/images/logos/logo_terra_gaia_mini.png" class="nav-logo" alt="terra-gaia-coaching-professionnel-conseil-rh-formation">
  10.                     <li class="nav-item">
  11.                         <a class="nav-link" aria-current="page" href="{{ path('app_home') }}">Accueil</a>
  12.                     </li>
  13.                     <li>
  14.                         <a class="nav-link" href="{{ path('app_themes') }}">Qui suis-je?</a>
  15.                     </li>
  16.                     <li>
  17.                         <a class="nav-link" href="{{ path('app_coordonates') }}">Contact</a>
  18.                     </li>
  19.                     {% if not app.user %}
  20.                         <li class="nav-item">
  21.                             <a class="nav-link" href="{{ path('app_login')}}">Se connecter</a>
  22.                         </li>
  23.                         <div class="navbar-visitor-info">
  24.                             <a href="https://www.instagram.com/terragaiacoaching/" title="Instagram"><i class="fa fa-brands fa-instagram fa-3x"></i></a>
  25.                             <a href="https://www.linkedin.com/in/laurence-debussy-expertrh/" title="Linkedin"><i class="fa fa-brands fa-linkedin fa-3x"></i></a>
  26.                         </div>
  27.                     {% endif %}
  28.                     {% if app.user and not is_granted ('ROLE_ADMIN')  %}
  29.                         <li class="nav-item dropdown">
  30.                             <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownProfil" role="button" data-bs-toggle="dropdown" aria-expanded="false">Espace Utilisateur</a>
  31.                             <ul class="dropdown-menu" aria-labelledby="navbarDropdownProfil">
  32.                                 <li>
  33.                                     <a class="dropdown-item text-warning" href="{{ path('app_user_show_dashboard') }}">Mon Tableau de Bord</a>
  34.                                 </li>
  35.                                 <li>
  36.                                     <a class="dropdown-item" href="{{ path('app_profile') }}">Mon Profil</a>
  37.                                 </li>
  38.                                 <li>
  39.                                     <a class="dropdown-item" href="{{ path('app_user_show_rdvs') }}">Mes RDVs/Séances</a>
  40.                                 </li>
  41.                                 <li>
  42.                                     <a class="dropdown-item" href="{{ path('app_user_show_bills') }}">Mes Devis</a>
  43.                                 </li>
  44.                                 <li>
  45.                                     <a class="dropdown-item" href="{{ path('app_user_show_contacts')}}">Mes Messages</a>
  46.                                 </li>
  47.                                 <li>
  48.                                     <a class="dropdown-item" href="{{ path('app_user_show_commentaries')}}">Mes Commentaires</a>
  49.                                 </li>
  50.                             </ul>
  51.                         </li>
  52.                         <li class="nav-item">
  53.                             <a class="nav-link" href="{{ path('app_logout')}}">Se déconnecter</a>
  54.                         </li>
  55.                     {% endif %} 
  56.                     {% if app.user and is_granted ('ROLE_ADMIN') %} 
  57.                         <li class="nav-item dropdown">
  58.                             <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">Espace Admin</a>
  59.                             <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
  60.                                 <li>
  61.                                     <a class="dropdown-item text-warning" href="{{ path('show_dashboard') }}">Tableau de Bord Administrateur</a>
  62.                                 </li>
  63.                                 <li>
  64.                                     <a class="dropdown-item" href="{{ path('app_disponibility_index') }}">Gestion Disponibilités</a>
  65.                                 </li>
  66.                                 <li>
  67.                                     <a class="dropdown-item" href="{{ path('app_booking_index') }}">Gestion RDVs</a>
  68.                                 </li>
  69.                                 <li>
  70.                                     <a class="dropdown-item" href="{{ path('app_choice_index') }}">Gestion Type de RDV</a>
  71.                                 </li>
  72.                                 <li>
  73.                                     <a class="dropdown-item" href="{{ path('app_user_index') }}">Gestion Utilisateurs</a>
  74.                                 </li>
  75.                                 <li>
  76.                                     <a class="dropdown-item" href="{{ path('app_bill_index') }}">Gestion Devis</a>
  77.                                 </li>
  78.                                 <li>
  79.                                     <a class="dropdown-item" href="{{ path('app_contact_index') }}">Gestion Messages</a>
  80.                                 </li>
  81.                                 <li>
  82.                                     <a class="dropdown-item" href="{{ path('app_commentary_index') }}">Gestion Commentaires</a>
  83.                                 </li>
  84.                                 <li>
  85.                                     <a class="dropdown-item" href="{{ path('app_category_index') }}">Gestion Catégories de Clients</a>
  86.                                 </li>
  87.                                 <li>
  88.                                     <a class="dropdown-item" href="{{ path('app_service_index') }}">Gestion Coachings/Accompagnements</a>
  89.                                 </li>
  90.                                 <li>
  91.                                     <a class="dropdown-item" href="{{ path('app_theme_index') }}">Gestion "Qui suis-je?"</a>
  92.                                 </li>
  93.                                 <li>
  94.                                     <a class="dropdown-item" href="{{ path('app_coordonate_index') }}">Gestion Contact</a>
  95.                                 </li>
  96.                                 <li>
  97.                                     <a class="dropdown-item" href="{{ path('app_legal_index') }}">Gestion Mentions légales</a>
  98.                                 </li>
  99.                                 <li>
  100.                                     <a class="dropdown-item" href="{{ path('app_privacy_index') }}">Gestion Politique de confidentialité</a>
  101.                                 </li>    
  102.                             </ul>
  103.                             <li class="nav-item">
  104.                                 <a class="nav-link" href="{{ path('app_logout')}}">Se déconnecter</a>
  105.                             </li>
  106.                         </li>
  107.                     {% endif %}
  108.                 </ul>
  109.                 {% if app.user %}
  110.                     <div class="navbar-user-info">
  111.                         <i class="fa fa-solid fa-cog fa-spin user-session py-2"></i>
  112.                         <span class="user-session">Bonjour {{ app.user.firstname }} {{ app.user.lastname}} | Date du Jour : {{ "now"|date("d/m/Y") }}</span>
  113.                         <br>
  114.                         <a href="https://www.instagram.com/terragaiacoaching/" title="Instagram"><i class="fa fa-brands fa-instagram fa-3x"></i></a>
  115.                         <a href="https://www.linkedin.com/in/laurence-debussy-expertrh/" title="Linkedin"><i class=" fa fa-brands fa-linkedin fa-3x"></i></a>
  116.                     </div>
  117.                 {% endif %}
  118.             </div>
  119.         </div>
  120.     </div>
  121. </nav>
  122. <div class="bg-light">
  123.     {{ render(url('app_render_categories_in_nav')) }}
  124. </div>