Browse Source

first iteration of search functionality - likely to fail hard

master
jk 3 years ago
parent
commit
a942e652bc
  1. 2
      public/css/jk.css
  2. 15
      resources/views/search/index.blade.php

2
public/css/jk.css

@ -29,7 +29,7 @@
max-width: 100px;
}
#search-form input[type="radio"]{
max-width: 5px;
max-width: 15px;
}
@media only screen and (orientation: portrait){

15
resources/views/search/index.blade.php

@ -1,19 +1,18 @@
<form method="post" action="{{ route('search.results') }}" id="search-form">
@csrf
<div class="form-group">
<label for="search">Search</label>
<input type="text" class="form-control" name="search" /><button type="submit" class="btn btn-primary">Search</button>
</div>
<div class="form-group">
<legend>Select table: </legend>
<input type="radio" id="summarie" value="summarie" class="form-control" name="table" checked>
<input type="radio" id="summarie" value="summarie" name="table" checked>
<label for="summarie">Beers</label>
<input type="radio" id="brewerie" value="brewerie" class="form-control" name="table" >
<input type="radio" id="brewerie" value="brewerie" name="table" >
<label for="">Breweries</label>
<input type="radio" id="hops" value="hops" class="form-control" name="table" >
<input type="radio" id="hops" value="hops" name="table" >
<label for="">Hops</label>
<input type="radio" id="yeasts" value="yeast" class="form-control" name="table" >
<input type="radio" id="yeasts" value="yeast" name="table" >
<label for="">Yeasts</label>
</div>
<div class="form-group">
<input type="text" class="form-control" name="search" /><button type="submit" class="btn btn-primary">Search</button>
</div>
</form>
Loading…
Cancel
Save