From cee3a95b396fb2d1e92b99bfd417f8decb89b536 Mon Sep 17 00:00:00 2001 From: jk Date: Thu, 24 Jun 2021 12:28:54 +0100 Subject: [PATCH] first iteration of search functionality - likely to fail hard --- app/Http/Controllers/SearchController.php | 7 ------- public/css/jk.css | 9 +++++++++ resources/views/search/index.blade.php | 6 +++--- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index a008b4a..6ff766e 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -18,13 +18,6 @@ use Kyslik\ColumnSortable\Sortable; class SearchController extends Controller { - public function index(Summarie $beer) - { - $results = $beer->sortable()->paginate(10); - - return view('search.results')->with('results', $results); - } - public function search(Request $request){ // validation $this->validate($request,[ diff --git a/public/css/jk.css b/public/css/jk.css index 8bdb2b9..0472932 100644 --- a/public/css/jk.css +++ b/public/css/jk.css @@ -20,6 +20,15 @@ .editbutton, .deletebutton{ display:inline-block; } + + +#search-form input[type="text"], #search-form input[type="radio"], #search-form label{ + display:inline; + } +#search-form input[type="radio"]{ + font-size: 12px; + } + @media only screen and (orientation: portrait){ .hideable{ diff --git a/resources/views/search/index.blade.php b/resources/views/search/index.blade.php index 35162e7..bbdf180 100644 --- a/resources/views/search/index.blade.php +++ b/resources/views/search/index.blade.php @@ -1,8 +1,8 @@ -
+ @csrf
- +
Select table: @@ -15,5 +15,5 @@
- +