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.

69 lines
2.5 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> -> {{ __('Adjunct Additions') }}<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 Adjunct Addition
  13. </button>
  14. @endif
  15. <!-- This piece of code is for error messages display purposes -->
  16. @include('inc.messages')
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. </div>
  22. <!-- this code if for the modal -->
  23. <div class="modal fade bg-primary text-dark" tabindex="-1" role="dialog" id="addModal">
  24. <div class="modal-dialog" role="document">
  25. <div class="modal-content">
  26. <div class="modal-header">
  27. <h5 class="modal-title">Add Grain</h5>
  28. <button type="button" class="close" data-dismiss="modal" aria-label="Close" >
  29. <span aria-hidden="true">x</span>
  30. </button>
  31. </div>
  32. <div class="modal-body">
  33. <form class="" action="{{route('adjunctadditions.store')}}" method="post">
  34. {{csrf_field()}}
  35. <div class="form-group">
  36. <label for="">Beer ID</label>
  37. <input type="text" class="form-control" name="beer_id">
  38. </div>
  39. <div class="form-group">
  40. <label for="">Adjunct ID</label>
  41. <input type="text" class="form-control" name="adjunct_id" >
  42. </div>
  43. <div class="form-group">
  44. <label for="">Amount</label>
  45. <input type="text" class="form-control" name="amount">
  46. </div>
  47. <div class="form-group">
  48. <label for="">Timing</label>
  49. <input type="text" class="form-control" name="timing">
  50. </div>
  51. <div class="form-group">
  52. <label for="">Alternative (ID)</label>
  53. <input type="text" class="form-control" name="alternative">
  54. </div>
  55. <div class="form-group">
  56. <label for="">Notes</label>
  57. <textarea type="text" class="form-control" name="notes"></textarea>
  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. @endsection