Skip to content

Commit

Permalink
Fixed: search bar shows for non admins (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
signebedi committed Apr 11, 2024
1 parent 8399252 commit 9c4ad53
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libreforms_fastapi/app/templates/base.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,15 @@
</div>
</li>

{% endif %}

{% if config['SEARCH_BAR_ENABLED'] %}
<form id="searchForm" class="d-flex">
<input class="form-control me-sm-2" type="search" id="searchTerm" placeholder="Search">
<button class="btn btn-secondary my-2 my-sm-0" onclick="searchQuery(this.value);" type="submit">Search</button>
</form>
{% endif %}

{% endif %}


{% else %}

<li class="nav-item">
Expand Down

0 comments on commit 9c4ad53

Please sign in to comment.