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