Added a search bar to homepage

This commit is contained in:
Jan Böhmer 2024-02-29 22:46:19 +01:00
parent e00988047c
commit 1815162907
4 changed files with 52 additions and 18 deletions

View file

@ -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 %}