templates/include/header.html.twig line 1

Open in your IDE?
  1. <header class="sticky-top">
  2.     <!-- Topbar -->
  3.     <nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top">
  4.         <!-- Sidebar Toggle (Topbar) -->
  5.         <button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3 text-dark">
  6.             <i class="fa fa-bars"></i>
  7.         </button>
  8.         <ul class="navbar-nav">
  9.             {% block bodytitle %}
  10.                 {% if bodytitle is defined %}
  11.                     <li class="nav-item bodytitle">
  12.                          <span class="nav-link text-dark">
  13.                            <h3 class="mb-0 header-main-title"><strong>{{ bodytitle|raw }}</strong></h3>
  14.                          </span>
  15.                     </li>
  16.                 {% endif %}
  17.             {% endblock %}
  18.         </ul>
  19.         <!-- Topbar Navbar -->
  20.         <ul class="navbar-nav ml-auto align-items-center">
  21.             {% include 'include/header-new-ticket.html.twig' %}
  22.             {% include 'include/header-clients.html.twig' %}
  23.             <li class="nav-item dropdown no-arrow">
  24.                 {% if is_granted('IS_AUTHENTICATED_FULLY') %}
  25.                     <a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button"
  26.                        data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  27.                         <span class="mr-2 d-none d-lg-inline text-gray-600 small">{{ app.user.email }}</span>
  28.                         <i class="fas fa-user-alt"></i>
  29.                     </a>
  30.                     <div class="dropdown-menu dropdown-menu-right shadow animated--grow-in"
  31.                          aria-labelledby="userDropdown">
  32.                         {% if is_granted('ADD_USER') and is_granted('ROLE_SERVICE_PORTAIL_NVL') %}
  33.                             <a class="dropdown-item" href="{{ path('COLLABORATOR_REGISTRATION') }}">
  34.                                 <i class="fas fa-user-plus fa-sm fa-fw mr-2 text-gray-400"></i>
  35.                                 Création de compte
  36.                             </a>
  37.                             <div class="dropdown-divider"></div>
  38.                         {% endif %}
  39.                         <a class="dropdown-item" href="{{ path('SUPPORT') }}">
  40.                             <i class="fas fa-wrench fa-sm fa-fw mr-2 text-gray-400"></i>
  41.                             Support
  42.                         </a>
  43.                         {# <a class="dropdown-item" href="{{ path('BOITES_MAILS') }}"> #}
  44.                         {# <i class="fas fa-at fa-sm fa-fw mr-2 text-gray-400"></i> #}
  45.                         {# Boites mails #}
  46.                         {# </a> #}
  47.                         {# <a class="dropdown-item" href="{{ path('NUMEROS_URGENCES') }}"> #}
  48.                         {# <i class="fas fa-heartbeat fa-sm fa-fw mr-2 text-gray-400"></i> #}
  49.                         {# Numéros d'urgences #}
  50.                         {# </a> #}
  51.                         <div class="dropdown-divider"></div>
  52.                         {% if not is_granted('ROLE_ADMIN') %}
  53.                             <a class="dropdown-item" href="{{ path('PROFILE') }}">
  54.                                 <i class="fas fa-user fa-sm fa-fw mr-2 text-gray-400"></i>
  55.                                 Mon profil
  56.                             </a>
  57.                             <div class="dropdown-divider"></div>
  58.                         {% endif %}
  59.                         {% if is_granted('ROLE_ADMIN') %}
  60.                             <a class="dropdown-item" href="{{ path('APP_ADMIN_LOGOUT') }}">
  61.                                 <i class="fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"></i>
  62.                                 Déconnexion
  63.                             </a>
  64.                         {% elseif is_granted('ROLE_USER') %}
  65.                             <a class="dropdown-item" href="{{ path('APP_LOGOUT') }}"
  66.                                data-toggle="tooltip" data-placement="left"
  67.                                title="Expiration de l'authentification dans {{ app.user.getExpirationInterval|date('%H:%i') }}">
  68.                                 <i class="fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"></i>
  69.                                 Déconnexion
  70.                             </a>
  71.                         {% endif %}
  72.                     </div>
  73.                 {% else %}
  74.                     <a class="nav-link" href="{{ path('APP_LOGIN') }}">
  75.                         <span class="mr-2 d-none d-lg-inline text-gray-600 small">Connexion</span>
  76.                         <i class="fas fa-user-alt"></i>
  77.                     </a>
  78.                 {% endif %}
  79.             </li>
  80.         </ul>
  81.     </nav>
  82. </header>