templates/include/no-aside-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 shadow">
  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.             <li class="nav-item bodytitle">
  10.                 {% if forcedLogo is defined %}
  11.                     <a href="{{ path('HOMEPAGE') }}">
  12.                         <img src="{{ forcedLogo|imagine_filter('top_logo') }}" alt="logo marque" class="img-fluid">
  13.                     </a>
  14.                 {% else %}
  15.                     <a href="{{ path('HOMEPAGE') }}">
  16.                         <img src="{{ asset('assets/img/groupe-nvl-black.png')|imagine_filter('top_logo') }}"
  17.                              alt="logo nvl" class="img-fluid">
  18.                     </a>
  19.                 {% endif %}
  20.             </li>
  21.         </ul>
  22.         <!-- Topbar Navbar -->
  23.         <ul class="navbar-nav ml-auto align-items-center">
  24.             {% include 'include/header-new-ticket.html.twig' %}
  25.             {% include 'include/header-clients.html.twig' %}
  26.             <li class="nav-item dropdown no-arrow">
  27.                 {% if is_granted('IS_AUTHENTICATED_FULLY') %}
  28.                     <a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button"
  29.                        data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  30.                         <span class="mr-2 d-none d-lg-inline text-gray-600 small">{{ app.user.email }}</span>
  31.                         <i class="fas fa-user-alt"></i>
  32.                     </a>
  33.                     <div class="dropdown-menu dropdown-menu-right shadow animated--grow-in"
  34.                          aria-labelledby="userDropdown">
  35.                         {% if is_granted('ADD_USER') and is_granted('ROLE_SERVICE_PORTAIL_NVL') %}
  36.                             <a class="dropdown-item" href="{{ path('COLLABORATOR_REGISTRATION') }}">
  37.                                 <i class="fas fa-user-plus fa-sm fa-fw mr-2 text-gray-400"></i>
  38.                                 Création de compte
  39.                             </a>
  40.                             <div class="dropdown-divider"></div>
  41.                         {% endif %}
  42.                         <a class="dropdown-item" href="{{ path('SUPPORT') }}">
  43.                             <i class="fas fa-wrench fa-sm fa-fw mr-2 text-gray-400"></i>
  44.                             Support
  45.                         </a>
  46. {#                        <a class="dropdown-item" href="{{ path('BOITES_MAILS') }}">#}
  47. {#                            <i class="fas fa-at fa-sm fa-fw mr-2 text-gray-400"></i>#}
  48. {#                            Boites mails#}
  49. {#                        </a>#}
  50. {#                        <a class="dropdown-item" href="{{ path('NUMEROS_URGENCES') }}">#}
  51. {#                            <i class="fas fa-heartbeat fa-sm fa-fw mr-2 text-gray-400"></i>#}
  52. {#                            Numéros d'urgences#}
  53. {#                        </a>#}
  54.                         <div class="dropdown-divider"></div>
  55.                         {% if not is_granted('ROLE_ADMIN') %}
  56.                             <a class="dropdown-item" href="{{ path('PROFILE') }}">
  57.                                 <i class="fas fa-user fa-sm fa-fw mr-2 text-gray-400"></i>
  58.                                 Mon profil
  59.                             </a>
  60.                             <div class="dropdown-divider"></div>
  61.                         {% endif %}
  62.                         {#                        {% if is_granted('ROLE_ADMIN') %} #}
  63.                         {#                            <span class="dropdown-item-text"> #}
  64.                         {#                                <i class="fas fa-microchip mr-2 text-gray-400"></i> #}
  65.                         {#                                Token : <br> #}
  66.                         {#                                {{ app.user.oauthToken }} #}
  67.                         {#                            </span> #}
  68.                         {#                        {% endif %} #}
  69.                         {# <a class="dropdown-item" href="#"> #}
  70.                         {# <i class="fas fa-list fa-sm fa-fw mr-2 text-gray-400"></i> #}
  71.                         {# Activity Log #}
  72.                         {# </a> #}
  73.                         {% if is_granted('ROLE_ADMIN') %}
  74.                             <a class="dropdown-item" href="{{ path('APP_ADMIN_LOGOUT') }}">
  75.                                 <i class="fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"></i>
  76.                                 Déconnexion
  77.                             </a>
  78.                         {% elseif is_granted('ROLE_USER') %}
  79.                             <a class="dropdown-item" href="{{ path('APP_LOGOUT') }}"
  80.                                data-toggle="tooltip" data-placement="left"
  81.                                title="Expiration de l'authentification dans {{ app.user.getExpirationInterval|date('%H:%i') }}">
  82.                                 <i class="fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"></i>
  83.                                 Déconnexion
  84.                             </a>
  85.                         {% endif %}
  86.                     </div>
  87.                 {% else %}
  88.                     <a class="nav-link" href="{{ path('APP_LOGIN') }}">
  89.                         <span class="mr-2 d-none d-lg-inline text-gray-600 small">Connexion</span>
  90.                         <i class="fas fa-user-alt"></i>
  91.                     </a>
  92.                 {% endif %}
  93.             </li>
  94.         </ul>
  95.     </nav>
  96. </header>