2022-11-16 21:04:22 +08:00
|
|
|
<div component="template-manager">
|
2019-08-12 03:04:43 +08:00
|
|
|
@if(userCan('templates-manage'))
|
|
|
|
<p class="text-muted small mb-none">
|
|
|
|
{{ trans('entities.templates_explain_set_as_template') }}
|
|
|
|
</p>
|
2021-08-22 20:15:58 +08:00
|
|
|
@include('form.toggle-switch', [
|
2019-08-12 03:04:43 +08:00
|
|
|
'name' => 'template',
|
|
|
|
'value' => old('template', $page->template ? 'true' : 'false') === 'true',
|
|
|
|
'label' => trans('entities.templates_set_as_template')
|
|
|
|
])
|
|
|
|
<hr>
|
|
|
|
@endif
|
|
|
|
|
2022-11-16 21:04:22 +08:00
|
|
|
<div class="search-box flexible mb-m" style="display: {{ count($templates) > 0 ? 'block' : 'none' }}">
|
|
|
|
<input refs="template-manager@searchInput" type="text" name="template-search" placeholder="{{ trans('common.search') }}">
|
2022-11-28 20:38:30 +08:00
|
|
|
<button refs="template-manager@searchButton" tabindex="-1" type="button">@icon('search')</button>
|
2022-11-16 21:04:22 +08:00
|
|
|
<button refs="template-manager@searchCancel" class="search-box-cancel text-neg" type="button" style="display: none">@icon('close')</button>
|
|
|
|
</div>
|
2019-08-12 03:04:43 +08:00
|
|
|
|
2022-11-16 21:04:22 +08:00
|
|
|
<div refs="template-manager@list">
|
2021-08-22 20:15:58 +08:00
|
|
|
@include('pages.parts.template-manager-list', ['templates' => $templates])
|
2019-08-12 03:04:43 +08:00
|
|
|
</div>
|
|
|
|
</div>
|