Merge pull request #410 from eReuse/feature/4107-search
add advanced search as top search
This commit is contained in:
commit
b98be622e1
|
@ -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
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Reference in New Issue