]> BookStack Code Mirror - bookstack/commitdiff
Added mobile search bar on search page
authorDan Brown <redacted>
Sun, 19 May 2019 14:06:52 +0000 (15:06 +0100)
committerDan Brown <redacted>
Sun, 19 May 2019 14:06:52 +0000 (15:06 +0100)
Since the header one hides on mobile devices.
Fixes #1450

resources/views/search/all.blade.php

index fba67abf9e20c5866e5a1d4413d26bc03c43960b..03c0b93e71a9acdc5fe11c4e5aa02fa06a377c9f 100644 (file)
             <div>
                 <div v-pre class="card content-wrap">
                     <h1 class="list-heading">{{ trans('entities.search_results') }}</h1>
+                    <form action="{{ baseUrl('/search') }}" method="GET"  class="search-box flexible hide-over-l">
+                        <input value="{{$searchTerm}}" type="text" name="term" placeholder="{{ trans('common.search') }}">
+                        <button type="submit">@icon('search')</button>
+                        <button v-if="searching" v-cloak class="search-box-cancel text-neg" v-on:click="clearSearch" type="button">@icon('close')</button>
+                    </form>
                     <h6 class="text-muted">{{ trans_choice('entities.search_total_results_found', $totalResults, ['count' => $totalResults]) }}</h6>
                     <div class="book-contents">
                         @include('partials.entity-list', ['entities' => $entities, 'showPath' => true])
Morty Proxy This is a proxified and sanitized view of the page, visit original site.