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.

57 lines
2.0 KiB

  1. @extends('fermentations')
  2. @section('main')
  3. <div class="row">
  4. <div class="col-sm-12">
  5. <h1 class="display-3">Add a Fermentation Step</h1>
  6. <div>
  7. @if ($errors->any())
  8. <div class="alert alert-danger">
  9. <ul>
  10. @foreach ($errors->all() as $error)
  11. <li>{{ $error }}</li>
  12. @endforeach
  13. </ul>
  14. </div><br />
  15. @endif
  16. <form method="post" action="{{ route('fermentations.store') }}">
  17. @csrf
  18. <div class="form-group">
  19. <label for="beer_id">Beer</label>
  20. <select class="form-control" name="beer_id">
  21. @foreach ($beers as $beer)
  22. <option value="{{$beer->beer_id}}">{{$beer->name}}</option>
  23. @endforeach
  24. </select>
  25. </div>
  26. <div class="form-group">
  27. <label for="yeast_id">Yeast</label>
  28. <select class="form-control" name="yeast_id">
  29. @foreach ($yeasts as $yeast)
  30. <option value="{{$yeast->id}}">{{$yeast->name}}</option>
  31. @endforeach
  32. </select>
  33. </div>
  34. <div class="form-group">
  35. <label for="temperature">Temperature</label>
  36. <input type="text" maxlength="20" class="form-control" name="temperature">
  37. </div>
  38. <div class="form-group">
  39. <label for="duration">Duration</label>
  40. <textarea type="text" class="form-control" name="duration"></textarea>
  41. </div>
  42. <div class="form-group">
  43. <label for="alternative">Alternative</label>
  44. <select class="form-control" name="alternative">
  45. <option value="">None suggested</option>
  46. @foreach ($yeasts as $yeast)
  47. <option value="{{$yeast->id}}">{{$yeast->name}}</option>
  48. @endforeach
  49. </select>
  50. </div>
  51. <button type="submit" class="btn btn-primary">Add Fermentation Step</button>
  52. </form>
  53. </div>
  54. </div>
  55. </div>
  56. @endsection