templates/navigation_principale.twig line 1

Open in your IDE?
  1. <nav class="navbar navbar-expand-lg text-white shadow">
  2.     <div class="container-fluid">
  3.         <a class="navbar-brand text-warning" href="#">GRETA-CFA | AMA64</a>
  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.             <i class="bi bi-list text-white"></i>
  6.         </button>
  7.         <div class="collapse navbar-collapse" id="navbarSupportedContent">
  8.             <ul class="navbar-nav me-auto mb-2 mb-lg-0">
  9.                 <li class="nav-item">
  10.                     <a class="nav-link active text-white" aria-current="page" href="{{ path('home') }}"><i class="bi bi-kanban"></i> Tableau de bord</a>
  11.                 </li>
  12.                 <li class="nav-item">
  13.                     <a class="nav-link text-white" href="{{ path('stagiaires') }}"><i class="bi bi-person-workspace"></i> Stagiaires</a>
  14.                 </li>
  15.                 <li class="nav-item">
  16.                     <a class="nav-link text-white" href="{{ path('formations') }}">
  17.                         <i class="bi bi-easel2"></i> Formations
  18.                     </a>
  19.                     <ul class="dropdown-menu" aria-labelledby="navbarFormations">
  20.                         <li><a class="dropdown-item" href="{{ path('formations') }}">Formations</a></li>
  21.                         <li><a class="dropdown-item" href="{{ path('convocations') }}">Convocations</a></li>
  22.                         <li><a class="dropdown-item" href="#">Présences</a></li>
  23.                         <li><a class="dropdown-item" href="#">Attestations</a></li>
  24.                     </ul>
  25.                 </li>
  26.                 <li class="nav-item">
  27.                     <a class="nav-link text-white" href="{{ path('statistiques_stagiaires') }}"><i class="bi bi-bar-chart-line"></i> Statistiques</a>
  28.                 </li>
  29.                 <li class="nav-item dropdown">
  30.                     <a class="nav-link dropdown-toggle text-white" href="#" id="navbarFormations" role="button" data-bs-toggle="dropdown" aria-expanded="false">
  31.                         <i class="bi bi-aspect-ratio"></i> Outils CD64
  32.                     </a>
  33.                     <ul class="dropdown-menu" aria-labelledby="navbarFormations">
  34.                         <li><a class="dropdown-item" href="{{ path('contentieux_a_traiter') }}">Traiter les contentieux</a></li>
  35.                         <li><a class="dropdown-item" href="{{ path('exports_listing') }}">Exports</a></li>
  36.                     </ul>
  37.                 </li>
  38.                 {% if app.user.roles[0] == 'ROLE_ADMIN' or app.user.roles[0] == 'ROLE_COORDO' %}
  39.                 <li class="nav-item dropdown">
  40.                     <a class="nav-link dropdown-toggle text-white" href="#" id="navbarAdministrations" role="button" data-bs-toggle="dropdown" aria-expanded="false">
  41.                         <i class="bi bi-gear"></i> Administrations
  42.                     </a>
  43.                     <ul class="dropdown-menu" aria-labelledby="navbarAdministrations">
  44.                         <li><a class="dropdown-item" href="{{ path('utilisateurs') }}">Utilisateurs</a></li>
  45.                         <li><a class="dropdown-item" href="{{ path('agences') }}">Agences & sites de formation</a></li>
  46.                         <li><a class="dropdown-item" href="{{ path('blocs_types') }}">Blocs & plannings types</a></li>
  47.                         <li><a class="dropdown-item" href="{{ path('formateurs') }}">Formateurs</a></li>
  48.                         <li><a class="dropdown-item" href="{{ path('cfc') }}">CFC</a></li>
  49.                         <li><a class="dropdown-item" href="{{ path('assistants') }}">Assitants(es) de formation</a></li>
  50.                         <li><a class="dropdown-item" href="{{ path('sauvegardes_restaurations_listing') }}">Sauvegardes | Restaurations</a></li>
  51.                         <li><a class="dropdown-item" href="#">Anonymisation</a></li>
  52.                     </ul>
  53.                 </li>
  54.                 {% endif %}
  55.                 {% if app.user.roles[0] == 'ROLE_ADMIN' %}
  56.                 <li class="nav-item dropdown">
  57.                     <a class="nav-link dropdown-toggle text-white" href="#" id="navbarAdministrations" role="button" data-bs-toggle="dropdown" aria-expanded="false">
  58.                         <i class="bi bi-gear"></i> Assistances
  59.                     </a>
  60.                     <ul class="dropdown-menu" aria-labelledby="navbarAdministrations">
  61.                         <li><a class="dropdown-item" href="{{ path('assistances_versioning') }}">Versioning</a></li>
  62.                     </ul>
  63.                 </li>
  64.                 {% endif %}
  65.                 
  66.             </ul>
  67.             <form class="d-flex">
  68.                 <!-- <input class="form-control me-2" type="search" placeholder="Mots clés" aria-label="Search">
  69.                 <button class="btn btn-warning" type="submit"><i class="bi bi-search"></i></button> -->
  70.                 <button class="btn btn-primary ms-5" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasRight" aria-controls="offcanvasRight"><i class="bi bi-person-circle"></i></button>
  71.             </form>
  72.         </div>
  73.     </div>
  74. </nav>
  75. <div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasRight" aria-labelledby="offcanvasRightLabel">
  76.     <div class="offcanvas-header">
  77.         <h5 id="offcanvasRightLabel" class=" text-uppercase fw-bold">MENU UTILISATEUR</h5>
  78.         <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
  79.     </div>
  80.     <div class="offcanvas-body">
  81.         <div class="fw-bold mb-1"><i class="bi bi-person-circle"></i> {{ app.user.prenom }} {{ app.user.nom }}</div>
  82.         <div class="mb-1"><i class="bi bi-envelope"></i> {{ app.user.email }}</div>
  83.         {% set organisations =  {2 : 'GRETA-CFA - Pau', 1 : 'GRETA-CFA - Bayonne', 3 : 'Conseil Départemental'} %}
  84.         <div class="mb-1"><i class="bi bi-building"></i> {{ organisations[app.user.organisation] }}</div>
  85.         <div class="mt-5 float-end">
  86.             <a href="{{ path('app_logout') }}">
  87.                 <button class="btn btn-success btn-sm"><i class="bi bi-box-arrow-in-right"></i> Déconnexion</button>
  88.             </a>
  89.         </div>
  90.     </div>
  91. </div>