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.

40 lines
1.3 KiB

  1. @extends('hopadditions')
  2. @section('main')
  3. <div class="row">
  4. <div class="col-sm-12 offset-sm-2">
  5. <h1 class="display-3">Add a Hop Addition</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('hopadditions.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">
  21. </div>
  22. <div class="form-group">
  23. <label for="hop_id">Hop ID</label>
  24. <input type="text" class="form-control" name="hop_id" >
  25. </div>
  26. <div class="form-group">
  27. <label for="amount">Amount</label>
  28. <input type="text" class="form-control" name="amount">
  29. </div>
  30. <div class="form-group">
  31. <label for="timing">Timing</label>
  32. <input type="text" class="form-control" name="timing">
  33. </div>
  34. <button type="submit" class="btn btn-primary">Add Hop Addition</button>
  35. </form>
  36. </div>
  37. </div>
  38. </div>
  39. @endsection