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') }}
6 @include('form.toggle-switch', [
8 'value' => old('template', $page->template ? 'true' : 'false') === 'true',
9 'label' => trans('entities.templates_set_as_template')
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>
20 <div refs="template-manager@list">
21 @include('pages.parts.template-manager-list', ['templates' => $templates])