templates/inc/navbar.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <title>Bootstrap Example</title>
  5.     <meta charset="utf-8">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1">
  7.     <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/css/bootstrap.min.css" rel="stylesheet" >
  8.     <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" ></script>
  9.     <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.min.js" integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT" crossorigin="anonymous"></script>
  10. </head>
  11. <body>
  12. <nav class="navbar navbar-expand-lg" style="background-color:  #0a1e47">
  13.     <div class="container-fluid">
  14.         <a class="navbar-brand" href="{{ path('app_home') }}">
  15.             <img src="{{ asset('img/CDOS_VIENNE_LOGO.jpg') }}" width="75">
  16.         </a>
  17.         <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
  18.             <span class="navbar-toggler-icon"></span>
  19.             <span></span>
  20.             <span></span>
  21.         </button>
  22.         <div class="justify-content-between" id="navbarSupportedContent" >
  23.             <ul class="navbar-nav ml-auto mb-2 mb-lg-0">
  24.                <!-- Tout le monde accès accueil -->
  25.                 <li class="nav-item text-uppercase px-5">
  26.                     <a class="nav-link text-light" aria-current="page" href="{{ path('app_home') }}">
  27.                         <i class="bi bi-house-fill" style="font-size:  16px;"></i>
  28.                         Accueil
  29.                     </a>
  30.                 </li>
  31.                 <!--Second ICONE-->
  32.                 {% if is_granted('ROLE_ADMIN_STRUCTURE') %}
  33.                     <li class="nav-item text-uppercase px-5">
  34.                         <a class="nav-link text-light" href="{{ path ('app_offersadmin') }}">
  35.                             <i class="bi bi-file-text-fill" style="font-size:  16px;"></i>
  36.                             Nos offres
  37.                         </a>
  38.                     </li>
  39.                 {% elseif is_granted('') == false or is_granted('ROLE_CANDIDAT') or is_granted('ROLE_SUPER_ADMIN')%}
  40.                 <li class="nav-item text-uppercase px-5">
  41.                     <a class="nav-link text-light" href="{{ path ('app_offers') }}">
  42.                         <i class="bi bi-file-earmark-fill" style="font-size:  16px;"></i>
  43.                         Les offres
  44.                     </a>
  45.                 </li>
  46.                 {% endif %}
  47.                 <!--Third ICONE-->
  48. {#                {% if is_granted('ROLE_CANDIDAT')  %}#}
  49. {#                <li class="nav-item text-uppercase px-5">#}
  50. {#                    <a class="nav-link text-light" href="#">#}
  51. {#                        <i class="bi bi-pen-fill bi-10px" style="font-size:  16px;"></i>#}
  52. {#                        Candidature spontanée#}
  53. {#                    </a>#}
  54. {#                </li>#}
  55.                 <!--SuperAdmin ICONE-->
  56.                 {% if is_granted('ROLE_ADMIN_STRUCTURE') %}
  57.                 <li class="nav-item text-uppercase px-5">
  58.                     <a class="nav-link text-light" href="{{ path('app_displayall') }}">
  59.                         <i class="bi bi-pen-fill bi-10px" style="font-size:  16px;"></i>
  60.                         Les Candidatures
  61.                     </a>
  62.                 </li>
  63.                 {% endif %}
  64.                 {% if is_granted('ROLE_SUPER_ADMIN') %}
  65.                 <li class="nav-item text-uppercase px-5">
  66.                     <a class="nav-link text-light" href="{{ path('app_allcandidature') }}">
  67.                         <i class="bi bi-person-lines-fill" style="font-size:  16px;"></i>
  68.                         Les candidatures
  69.                     </a>
  70.                 </li>
  71.                 {% elseif is_granted('ROLE_CANDIDAT') %}
  72.                     <!--Candidat-->
  73.                     <li class="nav-item text-uppercase px-5">
  74.                         <a class="nav-link text-light" href="{{ path("app_mescandidatures") }}">
  75.                             <i class="bi bi-person-lines-fill" style="font-size:  16px;"></i>
  76.                             Mes candidatures
  77.                         </a>
  78.                     </li>
  79.                 {% elseif is_granted('ROLE_ADMIN_STRUCTURE') %}
  80.                     <li class="nav-item text-uppercase px-5">
  81.                         <a class="nav-link text-light" href="{{ path('app_upload') }}">
  82.                             <i class="bi bi-plus-circle-fill" style="font-size:  16px;"></i>
  83.                             Ajouter une offre
  84.                         </a>
  85.                     </li>
  86.                 {% endif %}
  87.                 {% if is_granted('ROLE_SUPER_ADMIN') %}
  88.                 <li class="nav-item text-uppercase px-5">
  89.                     <a class="nav-link text-light" href="{{ path('app_alluser') }}">
  90.                         <i class="bi bi-person-bounding-box" style="font-size:  16px;"></i>
  91.                         Les utilisateurs
  92.                     </a>
  93.                 </li>
  94.                 {% endif %}
  95.             </ul>
  96.         </div>
  97.         <!---Bouton déconnecter pour Candidat et Admin Structure-->
  98.         {% if is_granted('ROLE_CANDIDAT') or is_granted('ROLE_ADMIN_STRUCTURE') %}
  99.         <div class="btn-group dropstart">
  100.             <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
  101.                 <i class="bi bi-person-circle"></i>
  102.             </button>
  103.             <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
  104.                 {% if is_granted('ROLE_ADMIN_STRUCTURE') %}
  105.                     <li><a class="dropdown-item" href="{{ path('gestion_structure') }}">Gérer mes structures</a></li>
  106.                 {% endif %}
  107.                 <li><a class="dropdown-item" href="{{ path('app_logout') }}">Se déconnecter</a></li>
  108.             </ul>
  109.         </div>
  110.             <!---Bouton pour le super admin-->
  111.         {% elseif is_granted('ROLE_SUPER_ADMIN') %}
  112.             <div class="btn-group dropstart">
  113.                 <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
  114.                     <i class="bi bi-person-circle"></i>
  115.                 </button>
  116.                 <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
  117.                     <li><a class="dropdown-item" href="{{ path('app_admin_register') }}">Créer un compte</a></li>
  118.                     <li><a class="dropdown-item" href="{{ path('app_logout') }}">Se déconnecter</a></li>
  119.                 </ul>
  120.             </div>
  121.         {% else %}
  122.             <!---Bouton pour le visiteur-->
  123.             <div class="btn-group dropstart">
  124.                 <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
  125.                     <i class="bi bi-person-circle"></i>
  126.                 </button>
  127.                 <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
  128.                     <li><a class="dropdown-item" href="{{ path('app_register') }}">Créer un compte</a></li>
  129.                     <li><a class="dropdown-item" href="{{ path('app_login') }}">Se connecter</a></li>
  130.                 </ul>
  131.             </div>
  132.         {% endif %}
  133.     </div>
  134. </nav>
  135. </body>
  136. </html>