|
|
@ -1,6 +1,6 @@ |
|
|
|
@extends('fermentations') |
|
|
|
@section('main') <div class="row"> |
|
|
|
<div class="col-sm-12 offset-sm-2"> |
|
|
|
<div class="col-sm-12"> |
|
|
|
<h1 class="display-3">Update Fermentation Step</h1> |
|
|
|
|
|
|
|
@if ($errors->any()) |
|
|
@ -17,12 +17,20 @@ |
|
|
|
@method('PATCH') |
|
|
|
@csrf |
|
|
|
<div class="form-group"> |
|
|
|
<label for="beer_id">Beer ID</label> |
|
|
|
<input type="text" class="form-control" name="beer_id" value="{{$fermentation->beer_id}}" /> |
|
|
|
<label for="beer_id">Beer</label> |
|
|
|
<select class="form-control" name="beer_id" {{ $selected_beer == $beer->beer_id ? 'selected="selected"' : '' }}> |
|
|
|
@foreach ($beers as $beer) |
|
|
|
<option value="{{$beer->beer_id}}">{{$beer->name}}</option> |
|
|
|
@endforeach |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label for="yeast_id">Yeast ID</label> |
|
|
|
<input type="text" class="form-control" name="yeast_id" value="{{$fermentation->yeast_id}}" /> |
|
|
|
<label for="yeast_id">Yeast</label> |
|
|
|
<select class="form-control" name="yeast_id" {{ $selected_yeast == $yeast->id ? 'selected="selected"' : '' }}> |
|
|
|
@foreach ($yeasts as $yeast) |
|
|
|
<option value="{{$yeast->id}}">{{$yeast->name}}</option> |
|
|
|
@endforeach |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label for="temperature">Temperature</label> |
|
|
@ -34,7 +42,12 @@ |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label for="alternative">Alternative (ID)</label> |
|
|
|
<input type="text" class="form-control" name="alternative" value="{{$fermentation->alternative}}" /> |
|
|
|
<select class="form-control" name="alternative"> |
|
|
|
<option value="">None suggested</option> |
|
|
|
@foreach ($yeasts as $yeast) |
|
|
|
<option value="{{$yeast->id}}" {{ $selected_alt == $yeast->id ? 'selected="selected"' : '' }}>{{$yeast->name}}</option> |
|
|
|
@endforeach |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
<button type="submit" class="btn btn-primary">Update</button> |
|
|
|
</form> |
|
|
|