Browse Source

trying to add dropdowns to edit blades - adjunctadditions mkIX

master
jk 3 years ago
parent
commit
ed43152711
  1. 2
      resources/views/fermentations/edit.blade.php

2
resources/views/fermentations/edit.blade.php

@ -43,7 +43,7 @@
<div class="form-group">
<label for="alternative">Alternative (ID)</label>
<select class="form-control" name="alternative">
<option value="" @if (is_null($fermentation->alternative)) selected="selected" @endif>None suggested</option>
<option value="">None suggested</option>
@foreach ($yeasts as $yeast)
<option value="{{$yeast->id}}" {{ !(is_null($fermentation->alternative)) & $selected_alt == $yeast->id ? 'selected="selected"' : '' }}>{{$yeast->name}}</option>
@endforeach

Loading…
Cancel
Save