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" id="shelf-sort-books-label">{{ 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"
37 aria-labelledby="shelf-sort-books-label"
39 @foreach (($shelf->visibleBooks ?? []) as $book)
40 @include('shelves.parts.shelf-sort-book-item', ['book' => $book])
44 <div class="form-group">
45 <label for="books" id="shelf-sort-all-books-label">{{ trans('entities.shelves_add_books') }}</label>
46 <input type="text" refs="shelf-sort@book-search" class="scroll-box-search" placeholder="{{ trans('common.search') }}">
47 <ul refs="shelf-sort@all-book-list"
48 aria-labelledby="shelf-sort-all-books-label"
50 @foreach ($books as $book)
51 @include('shelves.parts.shelf-sort-book-item', ['book' => $book])
59 <div class="form-group collapsible" component="collapsible" id="logo-control">
60 <button refs="collapsible@trigger" type="button" class="collapse-title text-link" aria-expanded="false">
61 <label>{{ trans('common.cover_image') }}</label>
63 <div refs="collapsible@content" class="collapse-content">
64 <p class="small">{{ trans('common.cover_image_description') }}</p>
66 @include('form.image-picker', [
67 'defaultImage' => url('/book_default_cover.png'),
68 'currentImage' => (isset($shelf) && $shelf->cover) ? $shelf->getBookCover() : url('/book_default_cover.png') ,
70 'imageClass' => 'cover'
75 <div class="form-group collapsible" component="collapsible" id="tags-control">
76 <button refs="collapsible@trigger" type="button" class="collapse-title text-link" aria-expanded="false">
77 <label for="tag-manager">{{ trans('entities.shelf_tags') }}</label>
79 <div refs="collapsible@content" class="collapse-content">
80 @include('entities.tag-manager', ['entity' => $shelf ?? null])
84 <div class="form-group text-right">
85 <a href="{{ isset($shelf) ? $shelf->getUrl() : url('/shelves') }}" class="button outline">{{ trans('common.cancel') }}</a>
86 <button type="submit" class="button">{{ trans('entities.shelves_save') }}</button>