]> BookStack Code Mirror - bookstack/blob - resources/views/pages/parts/template-manager.blade.php
Cleaned up dark mode styles inc. setting browser color scheme
[bookstack] / resources / views / pages / parts / template-manager.blade.php
1 <div component="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('form.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     <div class="search-box flexible mb-m" style="display: {{ count($templates) > 0 ? 'block' : 'none' }}">
15         <input refs="template-manager@searchInput" type="text" name="template-search" placeholder="{{ trans('common.search') }}">
16         <button refs="template-manager@searchButton" tabindex="-1" type="button">@icon('search')</button>
17         <button refs="template-manager@searchCancel" class="search-box-cancel text-neg" type="button" style="display: none">@icon('close')</button>
18     </div>
19
20     <div refs="template-manager@list">
21         @include('pages.parts.template-manager-list', ['templates' => $templates])
22     </div>
23 </div>