mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-30 23:52:40 +01:00
de3e9ab094
- Added replace, append and prepend actions for template content into both the WYSIWYG editor and markdown editor. - Added further testing to cover.
25 lines
956 B
PHP
25 lines
956 B
PHP
<div template-manager>
|
|
@if(userCan('templates-manage'))
|
|
<p class="text-muted small mb-none">
|
|
{{ trans('entities.templates_explain_set_as_template') }}
|
|
</p>
|
|
@include('components.toggle-switch', [
|
|
'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>
|
|
@include('pages.template-manager-list', ['templates' => $templates])
|
|
</div>
|
|
</div> |