]> BookStack Code Mirror - bookstack/blob - resources/views/entities/selector.blade.php
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / resources / views / entities / selector.blade.php
1 {{--
2 $name - string
3 $autofocus - boolean, optional
4 $entityTypes - string, optional
5 $entityPermission - string, optional
6 $selectorEndpoint - string, optional
7 $selectorSize - string, optional (compact)
8 --}}
9 <div class="form-group entity-selector-container">
10     <div component="entity-selector"
11          refs="entity-selector-popup@selector"
12          class="entity-selector {{$selectorSize ?? ''}}"
13          option:entity-selector:entity-types="{{ $entityTypes ?? 'book,chapter,page' }}"
14          option:entity-selector:entity-permission="{{ $entityPermission ?? 'view' }}"
15          option:entity-selector:search-endpoint="{{ $selectorEndpoint ?? '/search/entity-selector' }}">
16         <input refs="entity-selector@input" type="hidden" name="{{$name}}" value="">
17         <input refs="entity-selector@search" type="text" placeholder="{{ trans('common.search') }}" @if($autofocus ?? false) autofocus @endif>
18         <div class="text-center loading" refs="entity-selector@loading">@include('common.loading-icon')</div>
19         <div refs="entity-selector@results"></div>
20     </div>
21 </div>