]> BookStack Code Mirror - bookstack/blob - resources/views/pages/template-manager.blade.php
Update errors.php
[bookstack] / resources / views / pages / template-manager.blade.php
1 <div template-manager>
2     @if(userCan('templates-manage'))
3         <p class="text-muted small mb-none">
4             {{ trans('entities.templates_explain_set_as_template') }}
5         </p>
6         @include('components.toggle-switch', [
7                'name' => 'template',
8                'value' => old('template', $page->template ? 'true' : 'false') === 'true',
9                'label' => trans('entities.templates_set_as_template')
10         ])
11         <hr>
12     @endif
13
14     @if(count($templates) > 0)
15         <div class="search-box flexible mb-m">
16             <input type="text" name="template-search" placeholder="{{ trans('common.search') }}">
17             <button type="button">@icon('search')</button>
18             <button class="search-box-cancel text-neg hidden" type="button">@icon('close')</button>
19         </div>
20     @endif
21
22     <div template-manager-list>
23         @include('pages.template-manager-list', ['templates' => $templates])
24     </div>
25 </div>