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.

67 lines
2.3 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. @include('inc.navbar')
  8. <div class="card-header"><a href="/home">Home</a> -> {{ __('Mash Steps') }}<span class="backlink"><a href="{{url()->previous()}}">Go Back</a></span></div>
  9. <div class="card-body">
  10. @if (Auth::user()->isAdmin())
  11. <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#addModal" type="button" name="button" >
  12. Add Mash Step
  13. </button>
  14. <hr/>
  15. @endif
  16. <!-- This piece of code is for error messages display purposes -->
  17. @include('inc.messages')
  18. </div>
  19. </div>
  20. </div>
  21. </div>
  22. </div>
  23. <!-- this code if for the modal -->
  24. <div class="modal fade bg-primary text-dark" tabindex="-1" role="dialog" id="addModal">
  25. <div class="modal-dialog" role="document">
  26. <div class="modal-content">
  27. <div class="modal-header">
  28. <h5 class="modal-title">Add Grain</h5>
  29. <button type="button" class="close" data-dismiss="modal" aria-label="Close" >
  30. <span aria-hidden="true">x</span>
  31. </button>
  32. </div>
  33. <div class="modal-body">
  34. <form class="" action="{{route('mash.store')}}" method="post">
  35. {{csrf_field()}}
  36. <div class="form-group">
  37. <label for="">Beer ID</label>
  38. <input type="text" class="form-control" name="beer_id">
  39. </div>
  40. <div class="form-group">
  41. <label for="">Temperature</label>
  42. <input type="text" class="form-control" name="temp" >
  43. </div>
  44. <div class="form-group">
  45. <label for="">Duration</label>
  46. <input type="text" class="form-control" name="duration">
  47. </div>
  48. <div class="form-group">
  49. <label for="">Stage</label>
  50. <input type="text" class="form-control" name="stage">
  51. </div>
  52. <div class="form-group">
  53. <label for="">Length of Boil</label>
  54. <input type="text" class="form-control" name="boil">
  55. </div>
  56. <input type="submit" name="submit" value="Submit" class="btn btn-success">
  57. </form>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. @endsection