templates/menu/menu.html.twig line 1
<nav id='navigation' role='navigation' class="nav-menu container">
{# Logo #}
<a id="logoTopMenu" class="logo-topmenu" href="{{ path('home_page') }}">
<div class="flex-vertical-center">
<img id="logoTopMenuImg" src="{{ asset('assets/img/logo.jpg') }}" />
<span class="logonom">LODE<span class="lodeao-ao">AO</span></span>
</div>
</a>
{# Icone burger #}
<label for="menu" id="burger">
{%if app.request.requestUri == "/menu" %}
<a href="{{ path('home_page') }}">
<i id="burger-icon" class="fas fa-times burger-icon" style="font-size:30px"></i>
</a>
{% else %}
<a href="{{ path('menu_page') }}">
<i id="burger-icon" class="fa fa-bars burger-icon"></i>
</a>
{% endif %}
</label>
{# Bienvenue #}
{% if is_granted('ROLE_USER') %}
<div id="bienvenuSmall" > Bienvenue {{ app.user.prenom }} {{ app.user.nom|capitalize }} </div>
{% endif %}
{# Menu #}
{# <input type="checkbox" id="menu"> #}
<ul id="menuUl">
<li><a href="{{ path('static_page', { 'url' : 'qui-sommes-nous' }) }}">Qui sommes nous</a></li>
<li class="menu-hasdropdown">
<a href="{{ path('categoriefiltre_page', {'type': 1}) }}"> Protocoles <label for="protocoles"><i class="fa fa-chevron-down"></i></label></a>
<input type="checkbox" id="protocoles">
<ul class="menu-dropdown" id="menuprotocoles"></ul>
</li>
<li class="menu-hasdropdown">
<a href="{{ path('categoriefiltre_page', {'type': 2}) }}"> Matériels <label for="materiels"><i class="fa fa-chevron-down"></i></label></a>
<input type="checkbox" id="materiels">
<ul class="menu-dropdown" id="menumateriels"></ul>
</li>
<li><a href="{{ path('categoriefiltre_page', {'type': 1, 'code':'U'}) }}" class="lodeao-urgence">Urgences</a></li>
<li><a href="{{ path('contacts_page') }}">Contacts</a></li>
<li><a nohref id="btnrecherche"><i class="fa fa-search"></i><span class="small-only"> Rechercher</span></a></li>
<li id="recherchesmall" >
<div class="gridrecherchesmall" >
<form action="{{ path('recherche_page') }}">
<input type="text" class="textrecherche" name="txtrecherche" id="txtrecherchesmall" style="width:100%" placeholder="Rechercher"/>
<button class="clair recherche" id="btnrechsmall">Ok</button>
</form>
</div>
</li>
{# Menu Compte #}
<li class="menu-hasdropdown mnudesktop">
<a nohref><i class="fa fa-user"></i><span class="small-only"> Compte </span><label for="compte"><i class="fa fa-chevron-down"></i></label></a>
<input type="checkbox" id="compte">
<ul class="menu-dropdown">
{% if is_granted('ROLE_USER') %}
<li><a href="{{ path('infoscompte_page') }}">Mon compte</a></li>
{% if is_granted('ROLE_ADMIN') %}
<li><a href="{{ path('admin548637_home') }}">Administration</a></li>
{% endif %}
<li><a href="{{ path('app_logout') }}">Déconnexion</a></li>
{% else %}
<li><a href="{{ path('app_login') }}">Connexion</a></li>
<li><a href="{{ path('app_register') }}">Inscription</a></li>
{% endif %}
</ul>
</li>
<li class="menu-hasdropdown mnumobile">
<i class="fa fa-user"></i><span class="small-only"> Compte </span></a>
<ul style="padding-left:0">
{% if is_granted('ROLE_USER') %}
<li class="subli"><a href="{{ path('infoscompte_page') }}">Mon compte</a></li>
{% if is_granted('ROLE_ADMIN') %}
<li class="subli"><a href="{{ path('admin548637_home') }}">Administration</a></li>
{% endif %}
<li class="subli sublider"><a href="{{ path('app_logout') }}">Déconnexion</a></li>
{% else %}
<li class="subli"><i class="fa fa-chevron-right"></i> <a href="{{ path('app_login') }}">Connexion</a></li>
<li class="subli sublider"><i class="fa fa-chevron-right"></i> <a href="{{ path('app_register') }}">Inscription</a></li>
{% endif %}
</ul>
</li>
{% if is_granted('ROLE_USER') %}
<br/><div id="bienvenu" > Bienvenue {{ app.user.prenom }} {{ app.user.nom|capitalize }} </div>
{% endif %}
<div id="recherchelarge" >
<div class="gridrecherche" >
<form action="{{ path('recherche_page') }}">
<input type="text" name="txtrecherche" id="txtrecherchelarge" class="textrecherche" placeholder="Rechercher"/>
<button class="clair recherche" id="btnrechlarge">Ok</button>
</form>
</div>
</div>
</ul>
</nav>