mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-16 23:29:33 +00:00
Added a search bar to homepage
This commit is contained in:
parent
e00988047c
commit
1815162907
4 changed files with 52 additions and 18 deletions
|
|
@ -1,4 +1,5 @@
|
|||
{% import "helper.twig" as helper %}
|
||||
{% import "components/search.macro.html.twig" as search %}
|
||||
|
||||
<nav class="navbar navbar-expand-md bg-body-tertiary border-bottom shadow-sm fixed-top py-0" id="navbar">
|
||||
<div class="container-fluid">
|
||||
|
|
@ -58,7 +59,9 @@
|
|||
</ul>
|
||||
|
||||
{% if is_granted('@parts.read') %}
|
||||
{% include "_navbar_search.html.twig" %}
|
||||
{{ search.search_form("navbar") }}
|
||||
|
||||
{# {% include "_navbar_search.html.twig" %} #}
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue