templates/_partials/_navbar.html.twig line 1
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<div class="container-fluid">
<a class="navbar-brand" href="{{ path('app_main') }}">{{ nom_plateforme}}</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarColor01" aria-controls="navbarColor01" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarColor01">
<ul class="navbar-nav me-auto">
<li class="nav-item">
<a class="nav-link active" href="{{ path('app_main') }}">Accueil
<span class="visually-hidden">(current)</span>
</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="" role="button" aria-haspopup="true" aria-expanded="false">Recherche</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="{{ path('app_search') }}?t=u">Usager</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{{ path('app_search') }}?t=p">Parcours</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{{ path('app_search') }}?t=e">Entreprise</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ path('app_dashboard') }}">Dashboard</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ path('app_entreprise_index') }}">Entreprises</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ path('app_organisation_index') }}">Organismes</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ path('app_template') }}">Templates</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ path('app_themes') }}">Thèmes</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="" role="button" aria-haspopup="true" aria-expanded="false">Parcours</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="{{ path('app_parcours_index') }}">Formations</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{{ path('app_parcours_index') }}">Prestations</a>
</div>
</li>
</ul>
<form class="d-flex">
{% if app.user %}
<div class="dropdown">
<a class="btn btn-success dropdown-toggle" data-bs-toggle="dropdown" href="{{ path('admin') }}" role="button" aria-haspopup="true" aria-expanded="false">{{ app.user.nom|capitalize }} {{ app.user.prenom|capitalize }}</a>
<div class="dropdown-menu">
{% if is_granted('ROLE_ADMIN')%}
<a class="dropdown-item" href="{{ path('admin') }}">Admin</a>
{% endif %}
<a class="dropdown-item" href="{{ path('app_profile') }}">Profile</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{{ path('app_logout') }}">Déconnexion</a>
</div>
</div>
{% else %}
<a href="{{ path('app_login') }}" class="btn btn-success">Login</a>
{% endif %}
</form>
</div>
</div>
</nav>