mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-14 07:07:21 +08:00
20 lines
1.1 KiB
PHP
20 lines
1.1 KiB
PHP
|
<form component="global-search" action="{{ url('/search') }}" method="GET" class="search-box" role="search" tabindex="0">
|
||
|
<button id="header-search-box-button"
|
||
|
refs="global-search@button"
|
||
|
type="submit"
|
||
|
aria-label="{{ trans('common.search') }}"
|
||
|
tabindex="-1">@icon('search')</button>
|
||
|
<input id="header-search-box-input"
|
||
|
refs="global-search@input"
|
||
|
type="text"
|
||
|
name="term"
|
||
|
data-shortcut="global_search"
|
||
|
autocomplete="off"
|
||
|
aria-label="{{ trans('common.search') }}" placeholder="{{ trans('common.search') }}"
|
||
|
value="{{ $searchTerm ?? '' }}">
|
||
|
<div refs="global-search@suggestions" class="global-search-suggestions card">
|
||
|
<div refs="global-search@loading" class="text-center px-m global-search-loading">@include('common.loading-icon')</div>
|
||
|
<div refs="global-search@suggestion-results" class="px-m"></div>
|
||
|
<button class="text-button card-footer-link" type="submit">{{ trans('common.view_all') }}</button>
|
||
|
</div>
|
||
|
</form>
|