templates/header.html.twig line 1

Open in your IDE?
  1. <header>
  2.     <div class="header_left">
  3.         <div class="header_logo">
  4.             {% if admin is defined and admin %}
  5.                 <a href="{{ path('admin_default')}}">
  6.                 {% else %}
  7.                     <a href="{{ path('default')}}">
  8.                     {% endif %}
  9.                     <img src="{{ asset(image_dir_png ~ "MailBox_logo.png") }}" alt="Logo MAIL BOXES">
  10.                 </a>
  11.             </div>
  12.         </div>
  13.         {% if user is defined and user %}
  14.             <div class="header_right">
  15.                 <div class="header_name">
  16.                     <div class="header_name_bloc">
  17.                         <element class="icon-Profil_picto"></element>*
  18.                         {% if admin is defined and admin %}
  19.                             <span class="name_profil">Bonjour,
  20.                                 {{user.compte.prenom}}
  21.                                 {{user.compte.nom|upper}}</span>
  22.                             <div class="header_name_bloc_dropdown">
  23.                                 <hr>
  24.                                 <a href="{{ path('app_compte_show', {'id': user.compte.id}) }}">Mon compte</a>
  25.                             </div>
  26.                         {% else %}
  27.                             <span class="name_profil">Bonjour,
  28.                                 {{user.client.prenomContact}}
  29.                                 {{user.client.nomContact|upper}}</span>
  30.                             <div class="header_name_bloc_dropdown">
  31.                                 <hr>
  32.                                 <a href="{{ path('app_client_show', {'id': user.client.id}) }}">Mon compte</a>
  33.                             </div>
  34.                         {% endif %}
  35.                     </div>
  36.                 </div>
  37.                 <div
  38.                     class="burger">
  39.                     {# <input id="toggleBurger" type="checkbox"></input> #}
  40.                     <div class="burger-picto">
  41.                         <div class="burger-item"></div>
  42.                         <div class="burger-item"></div>
  43.                     </div>
  44.                 </div>
  45.             </div>
  46.             <div class="hiddendiv">
  47.                 <a href="{{ path('app_commande_new')}}">Nouvelle commande</a>
  48.                 <a href="{{ path('app_commande_index')}}">Suivi de commande</a>
  49.                 {% if admin is defined and admin %}
  50.                     <hr>
  51.                     <a href="{{ path('app_client_home')}}">Gestion des cavistes</a>
  52.                     <a href="{{ path('app_compte_index')}}">Gestion des administrateurs</a>
  53.                     <a href="{{ path('app_admin_index')}}">Configurateur</a>
  54.                 {% else %}
  55.                     <hr>
  56.                     <a href="{{ path('app_simulateur')}}">Simulateur de prix</a>
  57.                     <a href="{{ path('app_fourniture')}}">Commande de fourniture</a>
  58.                     <a href="{{ path('app_offre')}}">Offre complète</a>
  59.                 {% endif %}
  60.                 <hr>
  61.                 <a href="{{ path('app_outils')}}">Nos outils</a>
  62.                 <hr>
  63.                 <a href="{{ path('logout') }}" class="bold">Se déconnecter</a>
  64.             </div>
  65.         {% endif %}
  66.     </header>