BookStack/resources/views/components/entity-selector.blade.php

17 lines
999 B
PHP
Raw Normal View History

<div class="form-group entity-selector-container">
<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="">
<input type="text" placeholder="{{ trans('common.search') }}" @if($autofocus ?? false) autofocus @endif refs="entity-selector@search">
<div class="text-center loading" refs="entity-selector@loading">@include('partials.loading-icon')</div>
<div refs="entity-selector@results"></div>
2019-04-07 00:31:59 +08:00
@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
2016-06-25 22:31:38 +08:00
</div>
</div>