<header class="sticky-top"> <!-- Topbar --> <nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow"> <!-- Sidebar Toggle (Topbar) -->{# <button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3 text-dark">#}{# <i class="fa fa-bars"></i>#}{# </button>#} <ul class="navbar-nav"> <li class="nav-item bodytitle"> {% if forcedLogo is defined %} <a href="{{ path('HOMEPAGE') }}"> <img src="{{ forcedLogo|imagine_filter('top_logo') }}" alt="logo marque" class="img-fluid"> </a> {% else %} <a href="{{ path('HOMEPAGE') }}"> <img src="{{ asset('assets/img/groupe-nvl-black.png')|imagine_filter('top_logo') }}" alt="logo nvl" class="img-fluid"> </a> {% endif %} </li> </ul> <!-- Topbar Navbar --> <ul class="navbar-nav ml-auto align-items-center"> {% include 'include/header-new-ticket.html.twig' %} {% include 'include/header-clients.html.twig' %} <li class="nav-item dropdown no-arrow"> {% if is_granted('IS_AUTHENTICATED_FULLY') %} <a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <span class="mr-2 d-none d-lg-inline text-gray-600 small">{{ app.user.email }}</span> <i class="fas fa-user-alt"></i> </a> <div class="dropdown-menu dropdown-menu-right shadow animated--grow-in" aria-labelledby="userDropdown"> {% if is_granted('ADD_USER') and is_granted('ROLE_SERVICE_PORTAIL_NVL') %} <a class="dropdown-item" href="{{ path('COLLABORATOR_REGISTRATION') }}"> <i class="fas fa-user-plus fa-sm fa-fw mr-2 text-gray-400"></i> Création de compte </a> <div class="dropdown-divider"></div> {% endif %} <a class="dropdown-item" href="{{ path('SUPPORT') }}"> <i class="fas fa-wrench fa-sm fa-fw mr-2 text-gray-400"></i> Support </a>{# <a class="dropdown-item" href="{{ path('BOITES_MAILS') }}">#}{# <i class="fas fa-at fa-sm fa-fw mr-2 text-gray-400"></i>#}{# Boites mails#}{# </a>#}{# <a class="dropdown-item" href="{{ path('NUMEROS_URGENCES') }}">#}{# <i class="fas fa-heartbeat fa-sm fa-fw mr-2 text-gray-400"></i>#}{# Numéros d'urgences#}{# </a>#} <div class="dropdown-divider"></div> {% if not is_granted('ROLE_ADMIN') %} <a class="dropdown-item" href="{{ path('PROFILE') }}"> <i class="fas fa-user fa-sm fa-fw mr-2 text-gray-400"></i> Mon profil </a> <div class="dropdown-divider"></div> {% endif %} {# {% if is_granted('ROLE_ADMIN') %} #} {# <span class="dropdown-item-text"> #} {# <i class="fas fa-microchip mr-2 text-gray-400"></i> #} {# Token : <br> #} {# {{ app.user.oauthToken }} #} {# </span> #} {# {% endif %} #} {# <a class="dropdown-item" href="#"> #} {# <i class="fas fa-list fa-sm fa-fw mr-2 text-gray-400"></i> #} {# Activity Log #} {# </a> #} {% if is_granted('ROLE_ADMIN') %} <a class="dropdown-item" href="{{ path('APP_ADMIN_LOGOUT') }}"> <i class="fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"></i> Déconnexion </a> {% elseif is_granted('ROLE_USER') %} <a class="dropdown-item" href="{{ path('APP_LOGOUT') }}" data-toggle="tooltip" data-placement="left" title="Expiration de l'authentification dans {{ app.user.getExpirationInterval|date('%H:%i') }}"> <i class="fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"></i> Déconnexion </a> {% endif %} </div> {% else %} <a class="nav-link" href="{{ path('APP_LOGIN') }}"> <span class="mr-2 d-none d-lg-inline text-gray-600 small">Connexion</span> <i class="fas fa-user-alt"></i> </a> {% endif %} </li> </ul> </nav></header>