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.

231 lines
8.8 KiB

3 years ago
  1. @extends('layouts.app')
  2. @section('content')
  3. <div class="container">
  4. <div class="row justify-content-center">
  5. <div class="col-md-8">
  6. <div class="card">
  7. <div class="card-header"><a href="/home">Home</a> -> {{ __('Edit Page') }}<span class="backlink"><a href="{{url()->previous()}}">Go Back</a></span></div>
  8. <div class="card-body">
  9. <ul id="editbuttons">
  10. <li><button class="btn btn-primary btn-lg" data-toggle="gmodal" data-target="#gaddModal" type="button" name="gbutton" >
  11. Add Grain Bill
  12. </button></li>
  13. <li><button class="btn btn-primary btn-lg" data-toggle="mmodal" data-target="#maddModal" type="button" name="mbutton" >
  14. Add Mash Step
  15. </button></li>
  16. <li><button class="btn btn-primary btn-lg" data-toggle="hmodal" data-target="#haddModal" type="button" name="hbutton" >
  17. Add Hop Addition
  18. </button></li>
  19. <li><button class="btn btn-primary btn-lg" data-toggle="amodal" data-target="#aaddModal" type="button" name="abutton" >
  20. Add Adjunct Addition
  21. </button></li>
  22. <li><button class="btn btn-primary btn-lg" data-toggle="fmodal" data-target="#faddModal" type="button" name="fbutton" >
  23. Add Fermentation Step
  24. </button></li></ul>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. <!-- this code if for the modal -->
  31. <div class="modal fade bg-primary text-dark" tabindex="-1" role="dialog" id="gaddModal">
  32. <div class="modal-dialog" role="document">
  33. <div class="modal-content">
  34. <div class="modal-header">
  35. <h5 class="modal-title">Add Grain Bill</h5>
  36. <button type="button" class="close" data-dismiss="gmodal" aria-label="Close" >
  37. <span aria-hidden="true">x</span>
  38. </button>
  39. </div>
  40. <div class="modal-body">
  41. <form class="" action="{{route('gstore')}}" method="post">
  42. {{csrf_field()}}
  43. <div class="form-group">
  44. <label for="">Beer ID</label>
  45. <input type="text" class="form-control" name="beer_id">
  46. </div>
  47. <div class="form-group">
  48. <label for="">Grain ID</label>
  49. <input type="text" class="form-control" name="grain_id" >
  50. </div>
  51. <div class="form-group">
  52. <label for="">Amount</label>
  53. <input type="text" class="form-control" name="amount">
  54. </div>
  55. <div class="form-group">
  56. <label for="">% of Total Grain Bill</label>
  57. <input type="text" class="form-control" name="grain_bill">
  58. </div>
  59. <input type="submit" name="submit" value="Submit" class="btn btn-success">
  60. </form>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. <!-- this code if for the modal -->
  66. <div class="modal fade bg-primary text-dark" tabindex="-1" role="dialog" id="maddModal">
  67. <div class="modal-dialog" role="document">
  68. <div class="modal-content">
  69. <div class="modal-header">
  70. <h5 class="modal-title">Add Grain</h5>
  71. <button type="button" class="close" data-dismiss="mmodal" aria-label="Close" >
  72. <span aria-hidden="true">x</span>
  73. </button>
  74. </div>
  75. <div class="modal-body">
  76. <form class="" action="{{route('mstore')}}" method="post">
  77. {{csrf_field()}}
  78. <div class="form-group">
  79. <label for="">Beer ID</label>
  80. <input type="text" class="form-control" name="beer_id">
  81. </div>
  82. <div class="form-group">
  83. <label for="">Temperature</label>
  84. <input type="text" class="form-control" name="temp" >
  85. </div>
  86. <div class="form-group">
  87. <label for="">Duration</label>
  88. <input type="text" class="form-control" name="duration">
  89. </div>
  90. <div class="form-group">
  91. <label for="">Stage</label>
  92. <input type="text" class="form-control" name="stage">
  93. </div>
  94. <div class="form-group">
  95. <label for="">Length of Boil</label>
  96. <input type="text" class="form-control" name="boil">
  97. </div>
  98. <input type="submit" name="submit" value="Submit" class="btn btn-success">
  99. </form>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. <!-- this code if for the modal -->
  105. <div class="modal fade bg-primary text-dark" tabindex="-1" role="dialog" id="haddModal">
  106. <div class="modal-dialog" role="document">
  107. <div class="modal-content">
  108. <div class="modal-header">
  109. <h5 class="modal-title">Add Hop Addition</h5>
  110. <button type="button" class="close" data-dismiss="hmodal" aria-label="Close" >
  111. <span aria-hidden="true">x</span>
  112. </button>
  113. </div>
  114. <div class="modal-body">
  115. <form class="" action="{{route('hstore')}}" method="post">
  116. {{csrf_field()}}
  117. <div class="form-group">
  118. <label for="">Beer ID</label>
  119. <input type="text" class="form-control" name="beer_id">
  120. </div>
  121. <div class="form-group">
  122. <label for="">Hop ID</label>
  123. <input type="text" class="form-control" name="hop_id" >
  124. </div>
  125. <div class="form-group">
  126. <label for="">Amount</label>
  127. <input type="text" class="form-control" name="amount">
  128. </div>
  129. <div class="form-group">
  130. <label for="">Timing</label>
  131. <input type="text" class="form-control" name="timing">
  132. </div>
  133. <input type="submit" name="submit" value="Submit" class="btn btn-success">
  134. </form>
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. <!-- this code if for the modal -->
  140. <div class="modal fade bg-primary text-dark" tabindex="-1" role="dialog" id="aaddModal">
  141. <div class="modal-dialog" role="document">
  142. <div class="modal-content">
  143. <div class="modal-header">
  144. <h5 class="modal-title">Add Grain</h5>
  145. <button type="button" class="close" data-dismiss="amodal" aria-label="Close" >
  146. <span aria-hidden="true">x</span>
  147. </button>
  148. </div>
  149. <div class="modal-body">
  150. <form class="" action="{{route('astore')}}" method="post">
  151. {{csrf_field()}}
  152. <div class="form-group">
  153. <label for="">Beer ID</label>
  154. <input type="text" class="form-control" name="beer_id">
  155. </div>
  156. <div class="form-group">
  157. <label for="">Adjunct ID</label>
  158. <input type="text" class="form-control" name="adjunct_id" >
  159. </div>
  160. <div class="form-group">
  161. <label for="">Amount</label>
  162. <input type="text" class="form-control" name="amount">
  163. </div>
  164. <div class="form-group">
  165. <label for="">Timing</label>
  166. <input type="text" class="form-control" name="timing">
  167. </div>
  168. <div class="form-group">
  169. <label for="">Alternative (ID)</label>
  170. <input type="text" class="form-control" name="alternative">
  171. </div>
  172. <div class="form-group">
  173. <label for="">Notes</label>
  174. <textarea type="text" class="form-control" name="notes"></textarea>
  175. </div>
  176. <input type="submit" name="submit" value="Submit" class="btn btn-success">
  177. </form>
  178. </div>
  179. </div>
  180. </div>
  181. </div>
  182. <!-- this code if for the modal -->
  183. <div class="modal fade bg-primary text-dark" tabindex="-1" role="dialog" id="faddModal">
  184. <div class="modal-dialog" role="document">
  185. <div class="modal-content">
  186. <div class="modal-header">
  187. <h5 class="modal-title">Add Fermentation</h5>
  188. <button type="button" class="close" data-dismiss="fmodal" aria-label="Close" >
  189. <span aria-hidden="true">x</span>
  190. </button>
  191. </div>
  192. <div class="modal-body">
  193. <form class="" action="{{route('fstore')}}" method="post">
  194. {{csrf_field()}}
  195. <div class="form-group">
  196. <label for="">Beer ID</label>
  197. <input type="text" class="form-control" name="beer_id">
  198. </div>
  199. <div class="form-group">
  200. <label for="">Yeast ID</label>
  201. <input type="text" class="form-control" name="yeast_id" >
  202. </div>
  203. <div class="form-group">
  204. <label for="">Temperature</label>
  205. <input type="text" class="form-control" name="temperature">
  206. </div>
  207. <div class="form-group">
  208. <label for="">Duration</label>
  209. <textarea type="text" class="form-control" name="duration"></textarea>
  210. </div>
  211. <div class="form-group">
  212. <label for="">Alternative (ID)</label>
  213. <input type="text" class="form-control" name="alternative">
  214. </div>
  215. <input type="submit" name="submit" value="Submit" class="btn btn-success">
  216. </form>
  217. </div>
  218. </div>
  219. </div>
  220. </div>
  221. @endsection