mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-28 11:43:40 +08:00
a61c9c5e98
- Primarily moved and re-organised view files. - Included readme within views to document the convention. - Fixed some issues with page field select list in previous commit. - Tweaked some route names while going through. - Split some views out further. Closes #2805
17 lines
997 B
PHP
17 lines
997 B
PHP
<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('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> |