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.
72 lines
2.6 KiB
72 lines
2.6 KiB
@extends('beers')
|
|
|
|
@section('main')
|
|
<div class="row">
|
|
<div class="col-sm-8 offset-sm-2">
|
|
<h1 class="display-3">Add a Beer</h1>
|
|
<div>
|
|
@if ($errors->any())
|
|
<div class="alert alert-danger">
|
|
<ul>
|
|
@foreach ($errors->all() as $error)
|
|
<li>{{ $error }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div><br />
|
|
@endif
|
|
<form method="post" action="{{ route('beers.store') }}">
|
|
@csrf
|
|
<div class="form-group">
|
|
<label for="beer_id">Beer ID</label>
|
|
<input type="text" class="form-control" name="beer_id" value="{{$beer_id}}" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="name">Name</label>
|
|
<input type="text" class="form-control" name="name">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="keywords">Keywords</label>
|
|
<textarea type="text" class="form-control" name="keywords" ></textarea>
|
|
</div>
|
|
<div class="Type">
|
|
<label for="type">Style</label>
|
|
<input type="text" class="form-control" name="type">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="abv">ABV %</label>
|
|
<input type="text" class="form-control" name="abv">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="og">Original Gravity (OG)</label>
|
|
<input type="text" class="form-control" name="og">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="fg">Final Gravity (FG)</label>
|
|
<input type="text" class="form-control" name="fg">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="source">Source</label>
|
|
<input type="text" class="form-control" name="source">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="notes">Notes</label>
|
|
<textarea type="text" class="form-control" name="notes"></textarea>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="brewery_id">Brewery ID</label>
|
|
<input type="text" class="form-control" name="brewery_id">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="batch">Batch Size (L)</label>
|
|
<input type="text" class="form-control" name="batch">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="mine">Mine?</label>
|
|
<input type="checkbox" class="form-control" name="mine" checked>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Add brewery</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|