You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.7 KiB
43 lines
1.7 KiB
@extends('mashes')
|
|
@section('main') <div class="row">
|
|
<div class="col-sm-12 offset-sm-2">
|
|
<h1 class="display-3">Update Grain Bill</h1>
|
|
|
|
@if ($errors->any())
|
|
<div class="alert alert-danger">
|
|
<ul>
|
|
@foreach ($errors->all() as $error)
|
|
<li>{{ $error }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
<br />
|
|
@endif
|
|
<form method="post" action="{{ route('mashes.update', $mash->id) }}">
|
|
@method('PATCH')
|
|
@csrf
|
|
<div class="form-group">
|
|
<label for="beer_id">Beer ID</label>
|
|
<input type="text" class="form-control" name="beer_id" value="{{$mash->beer_id}}" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="temperature">Temperature</label>
|
|
<input type="text" class="form-control" name="temperature" value="{{$mash->temp}}" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="duration">Duration</label>
|
|
<input type="text" class="form-control" name="duration" value="{{$mash->duration}}" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="stage">Stage</label>
|
|
<input type="text" maxlength="5" class="form-control" name="stage" value="{{$mash->stage}}" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="boil">Length of Boil</label>
|
|
<input type="text" class="form-control" name="boil" value="{{$mash->boil}}" />
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Update</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
@endsection
|