3 <div class="form-group title-input">
4 <label for="name">{{ trans('common.name') }}</label>
5 @include('form.text', ['name' => 'name', 'autofocus' => true])
8 <div class="form-group description-input">
9 <label for="description">{{ trans('common.description') }}</label>
10 @include('form.textarea', ['name' => 'description'])
13 <div component="shelf-sort" class="grid half gap-xl">
14 <div class="form-group">
15 <label for="books">{{ trans('entities.shelves_books') }}</label>
16 <input refs="shelf-sort@input" type="hidden" name="books"
17 value="{{ isset($shelf) ? $shelf->visibleBooks->implode('id', ',') : '' }}">
18 <div class="scroll-box-header-item">{{ trans('entities.shelves_drag_books') }}</div>
19 <div refs="shelf-sort@shelf-book-list" class="scroll-box">
20 @if (count($shelf->visibleBooks ?? []) > 0)
21 @foreach ($shelf->visibleBooks as $book)
22 <div data-id="{{ $book->id }}" class="scroll-box-item">
23 <div class="handle">@icon('grip')</div>
24 <a href="{{ $book->getUrl() }}" class="text-book">@icon('book'){{ $book->name }}</a>
30 <div class="form-group">
31 <label for="books">{{ trans('entities.shelves_add_books') }}</label>
32 <input type="text" refs="shelf-sort@book-search" class="scroll-box-search" placeholder="{{ trans('common.search') }}">
33 <div refs="shelf-sort@all-book-list" class="scroll-box">
34 @foreach ($books as $book)
35 <div data-id="{{ $book->id }}" class="scroll-box-item">
36 <div class="handle">@icon('grip')</div>
37 <a href="{{ $book->getUrl() }}" class="text-book">@icon('book'){{ $book->name }}</a>
46 <div class="form-group collapsible" component="collapsible" id="logo-control">
47 <button refs="collapsible@trigger" type="button" class="collapse-title text-primary" aria-expanded="false">
48 <label>{{ trans('common.cover_image') }}</label>
50 <div refs="collapsible@content" class="collapse-content">
51 <p class="small">{{ trans('common.cover_image_description') }}</p>
53 @include('form.image-picker', [
54 'defaultImage' => url('/book_default_cover.png'),
55 'currentImage' => (isset($shelf) && $shelf->cover) ? $shelf->getBookCover() : url('/book_default_cover.png') ,
57 'imageClass' => 'cover'
62 <div class="form-group collapsible" component="collapsible" id="tags-control">
63 <button refs="collapsible@trigger" type="button" class="collapse-title text-primary" aria-expanded="false">
64 <label for="tag-manager">{{ trans('entities.shelf_tags') }}</label>
66 <div refs="collapsible@content" class="collapse-content">
67 @include('entities.tag-manager', ['entity' => $shelf ?? null])
71 <div class="form-group text-right">
72 <a href="{{ isset($shelf) ? $shelf->getUrl() : url('/shelves') }}" class="button outline">{{ trans('common.cancel') }}</a>
73 <button type="submit" class="button">{{ trans('entities.shelves_save') }}</button>