@push('head') @endpush {{ csrf_field() }}
@include('form.text', ['name' => 'name', 'autofocus' => true])
@include('form.description-html-input')

{{ trans('common.cover_image_description') }}

@include('form.image-picker', [ 'defaultImage' => url('/book_default_cover.png'), 'currentImage' => (isset($model) && $model->cover) ? $model->getBookCover() : url('/book_default_cover.png') , 'name' => 'image', 'imageClass' => 'cover' ])
@include('entities.tag-manager', ['entity' => $book ?? null])

{{ trans('entities.books_default_template_explain') }}

@include('form.page-picker', [ 'name' => 'default_template_id', 'placeholder' => trans('entities.books_default_template_select'), 'value' => $book->default_template_id ?? null, ])
{{ trans('common.cancel') }}
@include('entities.selector-popup', ['entityTypes' => 'page', 'selectorEndpoint' => '/search/entity-selector-templates']) @include('form.editor-translations')