mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-25 08:23:46 +00:00
on ne voit la barre de recherche qu'avec les droits suffisants
This commit is contained in:
parent
7938c64a56
commit
c7a1d38b53
1 changed files with 24 additions and 22 deletions
|
@ -132,30 +132,32 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
{% if not request.user.is_authenticated %}
|
{% if not request.user.is_authenticated %}
|
||||||
{% if var_sa %}
|
{% if var_sa %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{% url 'users:new-user' %}">
|
<a href="{% url 'users:new-user' %}">
|
||||||
<i class="fa fa-user-plus"></i> {% trans "Sign in" %}
|
<i class="fa fa-user-plus"></i> {% trans "Sign in" %}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li>
|
<li>
|
||||||
<a id="toggle_login" href="{% url 'login' %}">
|
<a id="toggle_login" href="{% url 'login' %}">
|
||||||
<i class="fa fa-sign-in-alt"></i> {% trans "Log in" %}
|
<i class="fa fa-sign-in-alt"></i> {% trans "Log in" %}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li>
|
{% can_view_any_app users machines cotisations %}
|
||||||
<form action="{% url "search:search"%}" class="navbar-form" role="search">
|
<li>
|
||||||
<div class="input-group">
|
<form action="{% url "search:search"%}" class="navbar-form" role="search">
|
||||||
<input type="text" class="form-control" placeholder="Search" name="q" id="search-term" {% if search_term %}value="{{ search_term }}"{% endif %}>
|
<div class="input-group">
|
||||||
<div class="input-group-btn">
|
<input type="text" class="form-control" placeholder="Search" name="q" id="search-term" {% if search_term %}value="{{ search_term }}"{% endif %}>
|
||||||
<button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>
|
<div class="input-group-btn">
|
||||||
<a href="{% url "search:searchp" %}" class="btn btn-default" role="button"><i class="fa fa-plus"></i></a>
|
<button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>
|
||||||
|
<a href="{% url "search:searchp" %}" class="btn btn-default" role="button"><i class="fa fa-plus"></i></a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</form>
|
||||||
</form>
|
</li>
|
||||||
</li>
|
{% acl_end %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li>
|
<li>
|
||||||
{% include 'buttons/setlang.html' %}
|
{% include 'buttons/setlang.html' %}
|
||||||
|
|
Loading…
Reference in a new issue