Commit 40c7b35b authored by Home's avatar Home

Bug fixes

parent a829b032
Pipeline #3 failed with stages
......@@ -72,10 +72,10 @@ class BookController extends Controller
{
$book = new AbstractBook($this->class::$dimensions, $this->class::$groupings);
$bundles = null;
foreach ( $this->bundleTypes as $bundle )
{
$bundles[$bundle] = Bundle::with($this->class::$dimensions)->where('type', $bundle)->get();
// $bundles[$bundle] = App\Bundle::where('type', $bundle)->get();
}
$roles = $this->roles;
$type = $this->type;
......
@if ( !isset($thumbnail))
<div>
<label class="c-card__item c-card__item--divider" for="accordion-2">Thumbnail</label>
@if ( isset($thumbnail))
<div>
<label class="c-card__item c-card__item--divider" for="accordion-2">Thumbnail</label>
<div class="pure-group c-card__item">
<input class="form-control" placeholder="location of file" class="form-control" type="text" name="thumbnail[path]" value="{{ $book->thumbnail->path or '' }}">
<input class="form-control" placeholder="File name" class="form-control" type="text" name="thumbnail[name]" value="{{ $book->thumbnail->name or '' }}">
<input class="form-control" placeholder="Photographer" class="form-control" type="text" name="thumbnail[photographer]" value="{{ $book->thumbnail->photographer or '' }}">
<input class="form-control" placeholder="Link to photographer's profile" class="form-control" type="text" name="thumbnail[link]" value="{{ $book->thumbnail->link or '' }}">
</div>
</div>
@endif
\ No newline at end of file
<div class="pure-group c-card__item">
<input class="form-control" placeholder="location of file" class="form-control" type="text" name="thumbnail[path]" value="{{ $book->thumbnail->path or '' }}">
<input class="form-control" placeholder="File name" class="form-control" type="text" name="thumbnail[name]" value="{{ $book->thumbnail->name or '' }}">
<input class="form-control" placeholder="Photographer" class="form-control" type="text" name="thumbnail[photographer]" value="{{ $book->thumbnail->photographer or '' }}">
<input class="form-control" placeholder="Link to photographer's profile" class="form-control" type="text" name="thumbnail[link]" value="{{ $book->thumbnail->link or '' }}">
</div>
</div>
@endif
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment