My beer compendium
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

  1. @extends('mashes')
  2. @section('main') <div class="row">
  3. <div class="col-sm-12 offset-sm-2">
  4. <h1 class="display-3">Update Grain Bill</h1>
  5. @if ($errors->any())
  6. <div class="alert alert-danger">
  7. <ul>
  8. @foreach ($errors->all() as $error)
  9. <li>{{ $error }}</li>
  10. @endforeach
  11. </ul>
  12. </div>
  13. <br />
  14. @endif
  15. <form method="post" action="{{ route('mashes.update', $mash->id) }}">
  16. @method('PATCH')
  17. @csrf
  18. <div class="form-group">
  19. <label for="beer_id">Beer ID</label>
  20. <input type="text" class="form-control" name="beer_id" value="{{$mash->beer_id}}" />
  21. </div>
  22. <div class="form-group">
  23. <label for="temperature">Temperature</label>
  24. <input type="text" class="form-control" name="temperature" value="{{$mash->temp}}" />
  25. </div>
  26. <div class="form-group">
  27. <label for="duration">Duration</label>
  28. <input type="text" class="form-control" name="duration" value="{{$mash->duration}}" />
  29. </div>
  30. <div class="form-group">
  31. <label for="stage">Stage</label>
  32. <input type="text" maxlength="5" class="form-control" name="stage" value="{{$mash->stage}}" />
  33. </div>
  34. <div class="form-group">
  35. <label for="boil">Length of Boil</label>
  36. <input type="text" class="form-control" name="boil" value="{{$mash->boil}}" />
  37. </div>
  38. <button type="submit" class="btn btn-primary">Update</button>
  39. </form>
  40. </div>
  41. </div>
  42. @endsection