|
@@ -43,15 +43,20 @@
|
|
</ul>
|
|
</ul>
|
|
{% endif %}
|
|
{% endif %}
|
|
</ul>
|
|
</ul>
|
|
- {% if not is_granted('IS_AUTHENTICATED_REMEMBERED') %}
|
|
|
|
|
|
+
|
|
|
|
+ <form class="form-inline my-2 my-lg-0" action="{{ path('search_recherche') }}">
|
|
|
|
+ <input class="form-control mr-sm-2" name="q" type="text" placeholder="Rechercher" aria-label="Rechercher">
|
|
|
|
+ <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Go</button>
|
|
|
|
+ </form>
|
|
|
|
+ {% if not is_granted('IS_AUTHENTICATED_REMEMBERED') %}
|
|
<ul class="navbar-nav">
|
|
<ul class="navbar-nav">
|
|
<li class="nav-item"><a class="nav-link" href="{{ path('login') }}">Se connecter</a></li>
|
|
<li class="nav-item"><a class="nav-link" href="{{ path('login') }}">Se connecter</a></li>
|
|
</ul>
|
|
</ul>
|
|
- {% else %}
|
|
|
|
|
|
+ {% else %}
|
|
<ul class="navbar-nav">
|
|
<ul class="navbar-nav">
|
|
<li class="nav-item dropdown">
|
|
<li class="nav-item dropdown">
|
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
- {{ app.user.nomComplet }}
|
|
|
|
|
|
+ {{ app.user.nomComplet }}
|
|
</a>
|
|
</a>
|
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
|
<a class="dropdown-item" href="{{ path('user_profil') }}">Profil</a>
|
|
<a class="dropdown-item" href="{{ path('user_profil') }}">Profil</a>
|
|
@@ -60,11 +65,7 @@
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
- {% endif %}
|
|
|
|
- {#<form class="form-inline my-2 my-lg-0">
|
|
|
|
- <input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
|
|
|
|
- <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
|
|
|
|
- </form>#}
|
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</nav>
|