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.

92 lines
3.4 KiB

  1. @extends('beers')
  2. @section('main')
  3. <div class="row">
  4. <div class="col-sm-12">
  5. <h1 class="display-3">Add a Beer</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('beers.store') }}">
  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="{{$beer_id}}" />
  21. </div>
  22. <div class="form-group">
  23. <label for="name">Name</label>
  24. <input type="text" class="form-control" name="name">
  25. </div>
  26. <div class="form-group">
  27. <label for="keywords">Keywords</label>
  28. <textarea type="text" class="form-control" name="keywords" ></textarea>
  29. </div>
  30. <div class="form-group">
  31. <label for="type">Style</label>
  32. <input type="text" class="form-control" name="type">
  33. </div>
  34. <div class="form-group">
  35. <label for="abv">ABV %</label>
  36. <input type="text" maxlength="5" class="form-control" name="abv">
  37. </div>
  38. <div class="form-group">
  39. <label for="og">Original Gravity (OG)</label>
  40. <input type="text" maxlength="8" class="form-control" name="og">
  41. </div>
  42. <div class="form-group">
  43. <label for="fg">Final Gravity (FG)</label>
  44. <input type="text" maxlength="8" class="form-control" name="fg">
  45. </div>
  46. <div class="form-group">
  47. <label for="source">Source</label>
  48. <input type="text" class="form-control" name="source">
  49. </div>
  50. <div class="form-group">
  51. <label for="notes">Notes</label>
  52. <textarea type="text" class="form-control" name="notes"></textarea>
  53. </div>
  54. <div class="form-group">
  55. <label for="brewery_id">Brewery</label>
  56. <select class="form-control" name="brewery_id">
  57. @foreach ($breweries as $brewery)
  58. <option value="{{$brewery->id}}">{{$brewery->name}}</option>
  59. @endforeach
  60. </select>
  61. </div>
  62. <div class="form-group">
  63. <label for="batch">Batch Size (L)</label>
  64. <input type="text" class="form-control" name="batch">
  65. </div>
  66. <div class="form-group">
  67. <label for="boil_volume">Boil Volume (L)</label>
  68. <input type="text" class="form-control" name="boil_volume">
  69. </div>
  70. <div class="form-group">
  71. <label for="ebc">EBC</label>
  72. <input type="text" class="form-control" name="ebc">
  73. </div>
  74. <div class="form-group">
  75. <label for="srm">SRM</label>
  76. <input type="text" class="form-control" name="srm">
  77. </div>
  78. <div class="form-group">
  79. <label for="ph">pH</label>
  80. <input type="text" class="form-control" name="ph">
  81. </div>
  82. <div class="form-group">
  83. <label for="mine">Mine?</label>
  84. <input type="checkbox" class="form-control" name="mine" checked>
  85. </div>
  86. <button type="submit" class="btn btn-primary">Add brewery</button>
  87. </form>
  88. </div>
  89. </div>
  90. </div>
  91. @endsection