2019-08-11 15:04:43 -04:00
|
|
|
<div template-manager>
|
|
|
|
@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
|
|
|
|
|
|
|
|
@if(count($templates) > 0)
|
|
|
|
<div class="search-box flexible mb-m">
|
|
|
|
<input type="text" name="template-search" placeholder="{{ trans('common.search') }}">
|
|
|
|
<button type="button">@icon('search')</button>
|
|
|
|
<button class="search-box-cancel text-neg hidden" type="button">@icon('close')</button>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<div 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>
|