Browse Source

trying to add dropdowns to edit blades - adjunctadditions mkVIII

master
jk 3 years ago
parent
commit
2c7a84ee68
  1. 4
      resources/views/adjunctadditions/edit.blade.php

4
resources/views/adjunctadditions/edit.blade.php

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

Loading…
Cancel
Save