]> BookStack Code Mirror - bookstack/blob - resources/views/entities/selector.blade.php
Added more complexity in an attempt to make ldap host failover fit
[bookstack] / resources / views / entities / selector.blade.php
1 <div class="form-group entity-selector-container">
2     <div component="entity-selector"
3          refs="entity-selector-popup@selector"
4          class="entity-selector {{$selectorSize ?? ''}}"
5          option:entity-selector:entity-types="{{ $entityTypes ?? 'book,chapter,page' }}"
6          option:entity-selector:entity-permission="{{ $entityPermission ?? 'view' }}">
7         <input refs="entity-selector@input" type="hidden" name="{{$name}}" value="">
8         <input refs="entity-selector@search" type="text" placeholder="{{ trans('common.search') }}" @if($autofocus ?? false) autofocus @endif>
9         <div class="text-center loading" refs="entity-selector@loading">@include('common.loading-icon')</div>
10         <div refs="entity-selector@results"></div>
11         @if($showAdd ?? false)
12             <div class="entity-selector-add">
13                 <button refs="entity-selector@add" type="button"
14                         class="button outline">@icon('add'){{ trans('common.add') }}</button>
15             </div>
16         @endif
17     </div>
18 </div>