mirror of https://github.com/logos-co/open-law.git
27 lines
1.7 KiB
HTML
27 lines
1.7 KiB
HTML
<!-- prettier-ignore -->
|
|
<div class="items-center justify-center py-1 bg-white dark:bg-gray-800 md:flex {% if request.blueprint=='search' %}flex absolute md:static top-16 left-7{% else %}hidden{% endif %}">
|
|
<label for="table-search" class="sr-only" >Search</label>
|
|
<div class="relative">
|
|
<div class="absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none">
|
|
<!-- prettier-ignore -->
|
|
<svg class="w-5 h-5 text-gray-500 dark:text-gray-400" aria-hidden="true" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z" clip-rule="evenodd"></path></svg>
|
|
</div>
|
|
<!-- prettier-ignore -->
|
|
<input
|
|
required
|
|
minlength="1"
|
|
autocomplete="off"
|
|
name="search_query"
|
|
{% if search_query %}
|
|
value='{{ search_query }}'
|
|
{% endif %}
|
|
type="text"
|
|
id="mainSearchInput"
|
|
class="block p-2 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg w-80 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
|
|
/>
|
|
</div>
|
|
<!-- prettier-ignore -->
|
|
<button type="submit" id="global-search-button" class="md:flex p-3 text-xs text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 ml-2 font-medium rounded-lg text-center hidden items-center mr-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">Search</button>
|
|
</div>
|
|
{% include 'search/quick_search_window.html' %}
|