|
@ -1,6 +1,6 @@ |
|
|
@extends('fermentations') |
|
|
@extends('fermentations') |
|
|
@section('main') <div class="row"> |
|
|
@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> |
|
|
<h1 class="display-3">Update Fermentation Step</h1> |
|
|
|
|
|
|
|
|
@if ($errors->any()) |
|
|
@if ($errors->any()) |
|
@ -17,12 +17,20 @@ |
|
|
@method('PATCH') |
|
|
@method('PATCH') |
|
|
@csrf |
|
|
@csrf |
|
|
<div class="form-group"> |
|
|
<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> |
|
|
<div class="form-group"> |
|
|
<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> |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<label for="temperature">Temperature</label> |
|
|
<label for="temperature">Temperature</label> |
|
@ -34,7 +42,12 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<label for="alternative">Alternative (ID)</label> |
|
|
<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> |
|
|
</div> |
|
|
<button type="submit" class="btn btn-primary">Update</button> |
|
|
<button type="submit" class="btn btn-primary">Update</button> |
|
|
</form> |
|
|
</form> |
|
|