]> BookStack Code Mirror - bookstack/blobdiff - resources/views/components/entity-selector.blade.php
Update settings.php
[bookstack] / resources / views / components / entity-selector.blade.php
index f115054734c5fde3851c95c2e5ffaee13f04bf1d..cb41950cb0e1426cc21100be417613e6187a1d33 100644 (file)
@@ -1,10 +1,10 @@
-<div class="form-group">
-    <div entity-selector class="entity-selector {{$selectorSize or ''}}" entity-types="{{ $entityTypes or 'book,chapter,page' }}" entity-permission="{{ $entityPermission or 'view' }}">
+<div class="form-group entity-selector-container">
+    <div entity-selector class="entity-selector {{$selectorSize ?? ''}}" entity-types="{{ $entityTypes ?? 'book,chapter,page' }}" entity-permission="{{ $entityPermission ?? 'view' }}">
         <input type="hidden" entity-selector-input name="{{$name}}" value="">
         <input type="text" placeholder="{{ trans('common.search') }}" entity-selector-search>
         <div class="text-center loading" entity-selector-loading>@include('partials.loading-icon')</div>
         <div entity-selector-results></div>
-        @if($showAdd)
+        @if($showAdd ?? false)
             <div class="entity-selector-add">
                 <button entity-selector-add-button type="button"
                         class="button outline">@icon('add'){{ trans('common.add') }}</button>