mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-30 12:43:43 +08:00
c9d0e22132
Better links the core selector component to the popup version, with new public methods for direct controlling. For #3528
18 lines
1.0 KiB
PHP
18 lines
1.0 KiB
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' }}">
|
|
<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>
|
|
@if($showAdd ?? false)
|
|
<div class="entity-selector-add">
|
|
<button refs="entity-selector@add" type="button"
|
|
class="button outline">@icon('add'){{ trans('common.add') }}</button>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div> |