Browse Source

first iteration of search functionality - likely to fail hard

master
jk 3 years ago
parent
commit
bf20164d5e
  1. 1
      resources/views/beers/index.blade.php
  2. 2
      resources/views/inc/navbar.blade.php
  3. 2
      resources/views/search/index.blade.php
  4. 3
      resources/views/search/results.blade.php

1
resources/views/beers/index.blade.php

@ -6,7 +6,6 @@
<div class="col-md-12">
<div class="card">
@include('inc.navbar')
@include('search.index')
<div class="card-header"><a href="/home">Home</a> -> {{ __('Beer List') }}<span class="backlink"><a href="{{url()->previous()}}">Go Back</a></span></div>
<div class="card-body">

2
resources/views/inc/navbar.blade.php

@ -1,3 +1,5 @@
<div id="navline1"><a href="/beers">Beers</a> | <a href="/breweries">Breweries</a> | <a href="/grains">Grains</a> | <a href="/hops">Hops</a> | <a href="/yeasts">Yeasts</a> | <a href="/adjuncts">Adjuncts</a></div>
@if (Auth::user()->isAdmin())<div id="navline2"><a href="/grainbills">Grain Bills</a> | <a href="/mashes">Mash Steps</a> | <a href="/hopadditions">Hop Additions</a> | <a href="/fermentations">Fermentation Steps</a> | <a href="/adjunctadditions">Adjunct Additions</a></div>@endif
@include('search.index')

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

@ -10,7 +10,7 @@
<label for="">Hops</label>
<input type="radio" id="yeasts" value="yeast" name="table" >
<label for="">Yeasts</label></span>
<input type="text" class="form-control" name="search" /> <button type="submit" class="btn btn-primary"><i class="fa fa-search fa-2x" aria-hidden="true"></i></button>
<input type="text" class="form-control" name="search" /> <button type="submit" class="btn btn-primary"><i class="fa fa-search" aria-hidden="true"></i></button>
</div>
</form>

3
resources/views/search/results.blade.php

@ -6,7 +6,6 @@
<div class="col-md-12">
<div class="card">
@include('inc.navbar')
@include('search.index')
<div class="card-header"><a href="/home">Home</a> -> {{ __('Search Results') }}<span class="backlink"><a href="{{url()->previous()}}">Go Back</a></span></div>
<div class="card-body">
@ -16,7 +15,7 @@
<thead>
<tr>
<th scope="col">@sortablelink('name')</th>
<th scope="col">@sortablelink('brewery')</th>
<th scope="col">@sortablelink('brewery'</th>
<th scope="col" class="hideable">@sortablelink('type', 'Style')</th>
</tr>
</thead>

Loading…
Cancel
Save