Merge pull request #410 from eReuse/feature/4107-search

add advanced search as top search
This commit is contained in:
cayop 2022-11-28 18:34:51 +01:00 committed by GitHub
commit b98be622e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -48,12 +48,12 @@
/** /**
* Search bar toggle * Search bar toggle
*/
if (select(".search-bar-toggle")) { if (select(".search-bar-toggle")) {
on("click", ".search-bar-toggle", (e) => { on("click", ".search-bar-toggle", (e) => {
select(".search-bar").classList.toggle("search-bar-show") select(".search-bar").classList.toggle("search-bar-show")
}) })
} }
*/
/** /**
* Navbar links active state on scroll * Navbar links active state on scroll

View File

@ -8,6 +8,12 @@
</div><!-- End Logo --> </div><!-- End Logo -->
<div class="search-bar"> <div class="search-bar">
<form class="search-form d-flex align-items-center" method="get" action="/inventory/search/">
<input class="" type="text" name="q" placeholder="Search" title="Enter search keyword">
<button type="submit" title="Search"><i class="bi bi-search"></i></button>
</form>
</div><!-- End Search Bar -->
<div class="search-bar d-none">
<form class="search-form d-flex align-items-center" method="" id="SearchForm" action="#"> <form class="search-form d-flex align-items-center" method="" id="SearchForm" action="#">
<input class="dropdown-toggle" type="text" name="query" placeholder="Search" title="Enter search keyword" <input class="dropdown-toggle" type="text" name="query" placeholder="Search" title="Enter search keyword"
autocomplete="off" id="dropdownSearch" data-bs-toggle="dropdown" aria-expanded="false"> autocomplete="off" id="dropdownSearch" data-bs-toggle="dropdown" aria-expanded="false">