mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-26 02:10:19 +08:00
7ebe7d4e58
- Adapted existing page picker to be usable elsewhere. - Added endpoint for getting templates for entity picker. - Added search template filter to support above. - Updated book save handling to check/validate submitted template. - Allows non-visible pages to flow through the save process, if not being changed. - Updated page deletes to handle removal of default usage on books. - Tweaked wording and form styles to suit. - Updated migration to explicity reflect default value.
13 lines
877 B
PHP
13 lines
877 B
PHP
<div class="form-group entity-selector-container">
|
|
<div component="entity-selector"
|
|
refs="entity-selector-popup@selector"
|
|
class="entity-selector {{$selectorSize ?? ''}}"
|
|
option:entity-selector:entity-types="{{ $entityTypes ?? 'book,chapter,page' }}"
|
|
option:entity-selector:entity-permission="{{ $entityPermission ?? 'view' }}"
|
|
option:entity-selector:search-endpoint="{{ $selectorEndpoint ?? '/search/entity-selector' }}">
|
|
<input refs="entity-selector@input" type="hidden" name="{{$name}}" value="">
|
|
<input refs="entity-selector@search" type="text" placeholder="{{ trans('common.search') }}" @if($autofocus ?? false) autofocus @endif>
|
|
<div class="text-center loading" refs="entity-selector@loading">@include('common.loading-icon')</div>
|
|
<div refs="entity-selector@results"></div>
|
|
</div>
|
|
</div> |