]> BookStack Code Mirror - bookstack/blobdiff - resources/views/search/all.blade.php
Started search interface, Added in vue and moved fonts
[bookstack] / resources / views / search / all.blade.php
index 54626daf1d656d4f550b82e275df21ed40c169e2..eb8ef51f3569d0952f2a3e25add84c2be3016300 100644 (file)
@@ -2,6 +2,9 @@
 
 @section('content')
 
+    <input type="hidden" name="searchTerm" value="{{$searchTerm}}">
+
+<div id="search-system">
     <div class="faded-small toolbar">
         <div class="container">
             <div class="row">
     </div>
 
 
-    <div class="container" ng-non-bindable>
+    <div class="container" ng-non-bindable id="searchSystem">
 
         <h1>{{ trans('entities.search_results') }}</h1>
 
-        <p>
-            {{--TODO - Remove these pages--}}
-            Remove these links (Commented out)
-            {{--@if(count($pages) > 0)--}}
-                {{--<a href="{{ baseUrl("/search/pages?term={$searchTerm}") }}" class="text-page"><i class="zmdi zmdi-file-text"></i>{{ trans('entities.search_view_pages') }}</a>--}}
-            {{--@endif--}}
-
-            {{--@if(count($chapters) > 0)--}}
-                {{--&nbsp; &nbsp;&nbsp;--}}
-                {{--<a href="{{ baseUrl("/search/chapters?term={$searchTerm}") }}" class="text-chapter"><i class="zmdi zmdi-collection-bookmark"></i>{{ trans('entities.search_view_chapters') }}</a>--}}
-            {{--@endif--}}
-
-            {{--@if(count($books) > 0)--}}
-                {{--&nbsp; &nbsp;&nbsp;--}}
-                {{--<a href="{{ baseUrl("/search/books?term={$searchTerm}") }}" class="text-book"><i class="zmdi zmdi-book"></i>{{ trans('entities.search_view_books') }}</a>--}}
-            {{--@endif--}}
-        </p>
+        <input type="text" v-model="termString">
 
         <div class="row">
+
             <div class="col-md-6">
-                <h3><a href="{{ baseUrl("/search/pages?term={$searchTerm}") }}" class="no-color">{{ trans('entities.pages') }}</a></h3>
-                @include('partials/entity-list', ['entities' => $entities, 'style' => 'detailed'])
+                @include('partials/entity-list', ['entities' => $entities])
             </div>
+
             <div class="col-md-5 col-md-offset-1">
-                Sidebar filter controls
+               <h3>Search Filters</h3>
+
+                <p><strong>Content Type</strong></p>
+                <div class="form-group">
+                    <label><input type="checkbox" v-on:change="typeChange" v-model="search.type.page" value="page"> Page</label>
+                    <label><input type="checkbox" v-on:change="typeChange" v-model="search.type.chapter" value="chapter"> Chapter</label>
+                    <label><input type="checkbox" v-on:change="typeChange" v-model="search.type.book" value="book"> Book</label>
+                </div>
+
             </div>
+
         </div>
 
 
     </div>
+</div>
+
+@stop
+
+@section('scripts')
+    <script>
 
 
+    </script>
 @stop
\ No newline at end of file