Browse Source

beers refactor mkVI

master
jk 3 years ago
parent
commit
61f427290a
  1. 2
      resources/views/beers/edit.blade.php
  2. 4
      resources/views/beers/index.blade.php

2
resources/views/beers/edit.blade.php

@ -22,7 +22,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="keywords">Keywords</label> <label for="keywords">Keywords</label>
<textarea type="text" class="form-control" name="keywords"/>{{ $beer->keywords }} </textarea>
<textarea type="text" class="form-control" name="keywords"/>{{str_replace(' ,',',',str_replace('"',' ',str_replace(',',', ',str_replace('}', '', str_replace('{','',$beer->keywords)))))}}</textarea>
</div> </div>
<div class="Type"> <div class="Type">
<label for="type">Style</label> <label for="type">Style</label>

4
resources/views/beers/index.blade.php

@ -10,9 +10,7 @@
<div class="card-body"> <div class="card-body">
@if (Auth::user()->isAdmin()) @if (Auth::user()->isAdmin())
<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#addModal" type="button" name="button" >
Add Beer
</button>
<a href="{{ route('beers.create') }}" class="btn btn-primary">Add Beer</a>
<hr /> <hr />
@endif @endif
<table class="table table-striped table-dark" id="table-programs"> <table class="table table-striped table-dark" id="table-programs">

Loading…
Cancel
Save