2019-04-07 16:57:48 +08:00
|
|
|
<div class="form-group entity-selector-container">
|
2019-04-07 00:31:59 +08:00
|
|
|
<div entity-selector class="entity-selector {{$selectorSize ?? ''}}" entity-types="{{ $entityTypes ?? 'book,chapter,page' }}" entity-permission="{{ $entityPermission ?? 'view' }}">
|
2016-06-25 22:31:38 +08:00
|
|
|
<input type="hidden" entity-selector-input name="{{$name}}" value="">
|
2017-08-27 21:31:34 +08:00
|
|
|
<input type="text" placeholder="{{ trans('common.search') }}" entity-selector-search>
|
|
|
|
<div class="text-center loading" entity-selector-loading>@include('partials.loading-icon')</div>
|
|
|
|
<div entity-selector-results></div>
|
2019-04-07 00:31:59 +08:00
|
|
|
@if($showAdd ?? false)
|
2019-04-06 23:56:50 +08:00
|
|
|
<div class="entity-selector-add">
|
|
|
|
<button entity-selector-add-button type="button"
|
|
|
|
class="button outline">@icon('add'){{ trans('common.add') }}</button>
|
|
|
|
</div>
|
|
|
|
@endif
|
2016-06-25 22:31:38 +08:00
|
|
|
</div>
|
2019-03-31 00:54:15 +08:00
|
|
|
</div>
|