Browse Source

trying to add dropdowns to edit blades - adjunctadditions mkII

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

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

@ -1,6 +1,6 @@
@extends('adjunctadditions')
@section('main') <div class="row">
<div class="col-sm-12>
<div class="col-sm-12">
<h1 class="display-3">Update Adjunct Addition</h1>
@if ($errors->any())
@ -43,7 +43,7 @@
<div class="form-group">
<label for="alternative">Alternative</label>
<select class="form-control" name="alternative">
<option value="">None suggested</option>
<option value="" {{ ! $selected_alt ? 'selected="selected"'}}>None suggested</option>
@foreach ($adjuncts as $adjunct)
<option value="{{$adjunct->id}}" {{ $selected_alt == $adjunct->alternative ? 'selected="selected"' : '' }}>{{$adjunct->name}}</option>
@endforeach

Loading…
Cancel
Save