Browse Source

trying to fix dropdown menus, mkVI

master
jk 3 years ago
parent
commit
fcc47d726e
  1. 12
      resources/views/adjunctadditions/create.blade.php
  2. 12
      resources/views/fermentations/create.blade.php
  3. 8
      resources/views/grainbills/create.blade.php
  4. 8
      resources/views/hopadditions/create.blade.php
  5. 4
      resources/views/mashes/create.blade.php

12
resources/views/adjunctadditions/create.blade.php

@ -18,17 +18,17 @@
@csrf
<div class="form-group">
<label for="beer_id">Beer</label>
<select>
<select class="form-control" name="beer_id">
@foreach ($beers as $beer)
<option name="beer_id" value="{{$beer->beer_id}}">{{$beer->name}}</option>
<option value="{{$beer->beer_id}}">{{$beer->name}}</option>
@endforeach
</select>
</div>
<div class="form-group">
<label for="adjunct_id">Adjunct</label>
<select>
<select class="form-control" name="adjunct_id">
@foreach ($adjuncts as $adjunct)
<option name="adjunct_id" value="{{$adjunct->id}}">{{$adjunct->name}}</option>
<option value="{{$adjunct->id}}">{{$adjunct->name}}</option>
@endforeach
</select>
</div>
@ -42,9 +42,9 @@
</div>
<div class="form-group">
<label for="alternative">Alternative</label>
<select>
<select class="form-control" name="alternative">
@foreach ($adjuncts as $adjunct)
<option name="alternative" value="{{$adjunct->id}}">{{$adjunct->name}}</option>
<option value="{{$adjunct->id}}">{{$adjunct->name}}</option>
@endforeach
</select>
</div>

12
resources/views/fermentations/create.blade.php

@ -18,17 +18,17 @@
@csrf
<div class="form-group">
<label for="beer_id">Beer</label>
<select>
<select class="form-control" name="beer_id">
@foreach ($beers as $beer)
<option name="beer_id" value="{{$beer->beer_id}}">{{$beer->name}}</option>
<option value="{{$beer->beer_id}}">{{$beer->name}}</option>
@endforeach
</select>
</div>
<div class="form-group">
<label for="yeast_id">Yeast</label>
<select>
<select class="form-control" name="yeast_id">
@foreach ($yeasts as $yeast)
<option name="yeast_id" value="{{$yeast->id}}">{{$yeast->name}}</option>
<option value="{{$yeast->id}}">{{$yeast->name}}</option>
@endforeach
</select>
</div>
@ -42,9 +42,9 @@
</div>
<div class="form-group">
<label for="alternative">Alternative</label>
<select>
<select class="form-control" name="alternative">
@foreach ($yeasts as $yeast)
<option name="alternative" value="{{$yeast->id}}">{{$yeast->name}}</option>
<option value="{{$yeast->id}}">{{$yeast->name}}</option>
@endforeach
</select>
</div>

8
resources/views/grainbills/create.blade.php

@ -18,17 +18,17 @@
@csrf
<div class="form-group">
<label for="beer_id">Beer</label>
<select>
<select class="form-control" name="beer_id">
@foreach ($beers as $beer)
<option name="beer_id" value="{{$beer->beer_id}}">{{$beer->name}}</option>
<option value="{{$beer->beer_id}}">{{$beer->name}}</option>
@endforeach
</select>
</div>
<div class="form-group">
<label for="grain_id">Grain</label>
<select>
<select class="form-control" name="grain_id">
@foreach ($grains as $grain)
<option name="grain_id" value="{{$grain->id}}">{{$grain->name}}</option>
<option value="{{$grain->id}}">{{$grain->name}}</option>
@endforeach
</select>
</div>

8
resources/views/hopadditions/create.blade.php

@ -18,17 +18,17 @@
@csrf
<div class="form-group">
<label for="beer_id">Beer</label>
<select>
<select class="form-control" name="beer_id">
@foreach ($beers as $beer)
<option name="beer_id" value="{{$beer->beer_id}}">{{$beer->name}}</option>
<option value="{{$beer->beer_id}}">{{$beer->name}}</option>
@endforeach
</select>
</div>
<div class="form-group">
<label for="hop_id">Hop</label>
<select>
<select class="form-control" name="hop_id">
@foreach ($hops as $hop)
<option name="hop_id" value="{{$hop->id}}">{{$hop->name}}</option>
<option value="{{$hop->id}}">{{$hop->name}}</option>
@endforeach
</select>
</div>

4
resources/views/mashes/create.blade.php

@ -18,9 +18,9 @@
@csrf
<div class="form-group">
<label for="beer_id">Beer</label>
<select>
<select class="form-control" name="beer_id">
@foreach ($beers as $beer)
<option name="beer_id" value="{{$beer->beer_id}}">{{$beer->name}}</option>
<option value="{{$beer->beer_id}}">{{$beer->name}}</option>
@endforeach
</select>
</div>

Loading…
Cancel
Save