]> BookStack Code Mirror - bookstack/blob - resources/views/components/entity-selector.blade.php
Merge branch 'create-content-meta-tags' of https://github.com/james-geiger/BookStack...
[bookstack] / resources / views / components / entity-selector.blade.php
1 <div class="form-group entity-selector-container">
2     <div component="entity-selector"
3          class="entity-selector {{$selectorSize ?? ''}}"
4          option:entity-selector:entity-types="{{ $entityTypes ?? 'book,chapter,page' }}"
5          option:entity-selector:entity-permission="{{ $entityPermission ?? 'view' }}">
6         <input refs="entity-selector@input" type="hidden" name="{{$name}}" value="">
7         <input type="text" placeholder="{{ trans('common.search') }}" @if($autofocus ?? false) autofocus @endif refs="entity-selector@search">
8         <div class="text-center loading" refs="entity-selector@loading">@include('partials.loading-icon')</div>
9         <div refs="entity-selector@results"></div>
10         @if($showAdd ?? false)
11             <div class="entity-selector-add">
12                 <button refs="entity-selector@add" type="button"
13                         class="button outline">@icon('add'){{ trans('common.add') }}</button>
14             </div>
15         @endif
16     </div>
17 </div>