BookStackApp/BookStack

View on GitHub
resources/views/layouts/parts/header-search.blade.php

Summary

Maintainability
A
0 mins
Test Coverage
<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>