2019-04-07 04:57:48 -04:00
|
|
|
<div class="form-group entity-selector-container">
|
2021-02-12 17:10:37 -05:00
|
|
|
<div component="entity-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="">
|
2022-01-04 06:30:44 -05:00
|
|
|
<input refs="entity-selector@search entity-selector-popup@searchInput" type="text" placeholder="{{ trans('common.search') }}" @if($autofocus ?? false) autofocus @endif>
|
2021-08-22 08:15:58 -04:00
|
|
|
<div class="text-center loading" refs="entity-selector@loading">@include('common.loading-icon')</div>
|
2021-02-12 17:10:37 -05:00
|
|
|
<div refs="entity-selector@results"></div>
|
2019-04-06 12:31:59 -04:00
|
|
|
@if($showAdd ?? false)
|
2019-04-06 11:56:50 -04:00
|
|
|
<div class="entity-selector-add">
|
2021-02-12 17:10:37 -05:00
|
|
|
<button refs="entity-selector@add" type="button"
|
2019-04-06 11:56:50 -04:00
|
|
|
class="button outline">@icon('add'){{ trans('common.add') }}</button>
|
|
|
|
</div>
|
|
|
|
@endif
|
2016-06-25 10:31:38 -04:00
|
|
|
</div>
|
2019-03-30 12:54:15 -04:00
|
|
|
</div>
|