Browse Source

trying to add dropdowns to edit blades - adjunctadditions mkIII

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

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

@ -43,7 +43,7 @@
<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="" {{ ! $selected_alt ? 'selected="selected"'}}>None suggested</option>
<option value="" {{ !($adjunct->alternative) ? 'selected="selected"'}}>None suggested</option>
@foreach ($adjuncts as $adjunct) @foreach ($adjuncts as $adjunct)
<option value="{{$adjunct->id}}" {{ $selected_alt == $adjunct->alternative ? 'selected="selected"' : '' }}>{{$adjunct->name}}</option> <option value="{{$adjunct->id}}" {{ $selected_alt == $adjunct->alternative ? 'selected="selected"' : '' }}>{{$adjunct->name}}</option>
@endforeach @endforeach

Loading…
Cancel
Save