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 flex-container-row items-center py-xs">
19 <span class="px-m py-xs">{{ trans('entities.shelves_drag_books') }}</span>
20 <div class="dropdown-container ml-auto" component="dropdown">
21 <button refs="dropdown@toggle"
23 title="{{ trans('common.more') }}"
24 class="icon-button px-xs py-xxs mx-xs text-bigger"
26 aria-expanded="false">
29 <div refs="dropdown@menu shelf-sort@sort-button-container" class="dropdown-menu" role="menu">
30 <button type="button" class="text-item" data-sort="name">{{ trans('entities.books_sort_name') }}</button>
31 <button type="button" class="text-item" data-sort="created">{{ trans('entities.books_sort_created') }}</button>
32 <button type="button" class="text-item" data-sort="updated">{{ trans('entities.books_sort_updated') }}</button>
36 <ul refs="shelf-sort@shelf-book-list" class="scroll-box">
37 @foreach (($shelf->visibleBooks ?? []) as $book)
38 @include('shelves.parts.shelf-sort-book-item', ['book' => $book])
42 <div class="form-group">
43 <label for="books">{{ trans('entities.shelves_add_books') }}</label>
44 <input type="text" refs="shelf-sort@book-search" class="scroll-box-search" placeholder="{{ trans('common.search') }}">
45 <ul refs="shelf-sort@all-book-list" class="scroll-box">
46 @foreach ($books as $book)
47 @include('shelves.parts.shelf-sort-book-item', ['book' => $book])
55 <div class="form-group collapsible" component="collapsible" id="logo-control">
56 <button refs="collapsible@trigger" type="button" class="collapse-title text-link" aria-expanded="false">
57 <label>{{ trans('common.cover_image') }}</label>
59 <div refs="collapsible@content" class="collapse-content">
60 <p class="small">{{ trans('common.cover_image_description') }}</p>
62 @include('form.image-picker', [
63 'defaultImage' => url('/book_default_cover.png'),
64 'currentImage' => (isset($shelf) && $shelf->cover) ? $shelf->getBookCover() : url('/book_default_cover.png') ,
66 'imageClass' => 'cover'
71 <div class="form-group collapsible" component="collapsible" id="tags-control">
72 <button refs="collapsible@trigger" type="button" class="collapse-title text-link" aria-expanded="false">
73 <label for="tag-manager">{{ trans('entities.shelf_tags') }}</label>
75 <div refs="collapsible@content" class="collapse-content">
76 @include('entities.tag-manager', ['entity' => $shelf ?? null])
80 <div class="form-group text-right">
81 <a href="{{ isset($shelf) ? $shelf->getUrl() : url('/shelves') }}" class="button outline">{{ trans('common.cancel') }}</a>
82 <button type="submit" class="button">{{ trans('entities.shelves_save') }}</button>