2022-11-16 21:04:22 +08:00
|
|
|
<div component="editor-toolbox" class="floating-toolbox">
|
2019-07-07 20:45:46 +08:00
|
|
|
|
|
|
|
<div class="tabs primary-background-light">
|
2022-11-16 21:04:22 +08:00
|
|
|
<button type="button" refs="editor-toolbox@toggle" aria-expanded="false" class="toolbox-toggle">@icon('caret-left-circle')</button>
|
|
|
|
<button type="button" refs="editor-toolbox@tab-button" data-tab="tags" title="{{ trans('entities.page_tags') }}" class="active">@icon('tag')</button>
|
2019-07-07 20:45:46 +08:00
|
|
|
@if(userCan('attachment-create-all'))
|
2022-11-16 21:04:22 +08:00
|
|
|
<button type="button" refs="editor-toolbox@tab-button" data-tab="files" title="{{ trans('entities.attachments') }}">@icon('attach')</button>
|
2019-07-07 20:45:46 +08:00
|
|
|
@endif
|
2022-11-16 21:04:22 +08:00
|
|
|
<button type="button" refs="editor-toolbox@tab-button" data-tab="templates" title="{{ trans('entities.templates') }}">@icon('template')</button>
|
2023-06-16 20:08:04 +08:00
|
|
|
@if($comments->enabled())
|
|
|
|
<button type="button" refs="editor-toolbox@tab-button" data-tab="comments" title="{{ trans('entities.comments') }}">@icon('comment')</button>
|
|
|
|
@endif
|
2019-07-07 20:45:46 +08:00
|
|
|
</div>
|
|
|
|
|
2022-11-16 21:04:22 +08:00
|
|
|
<div refs="editor-toolbox@tab-content" data-tab-content="tags" class="toolbox-tab-content">
|
2019-07-07 20:45:46 +08:00
|
|
|
<h4>{{ trans('entities.page_tags') }}</h4>
|
|
|
|
<div class="px-l">
|
2021-08-22 20:15:58 +08:00
|
|
|
@include('entities.tag-manager', ['entity' => $page])
|
2019-07-07 20:45:46 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@if(userCan('attachment-create-all'))
|
2020-07-04 23:53:02 +08:00
|
|
|
@include('attachments.manager', ['page' => $page])
|
2019-07-07 20:45:46 +08:00
|
|
|
@endif
|
|
|
|
|
2022-11-16 21:04:22 +08:00
|
|
|
<div refs="editor-toolbox@tab-content" data-tab-content="templates" class="toolbox-tab-content">
|
2019-07-07 20:45:46 +08:00
|
|
|
<h4>{{ trans('entities.templates') }}</h4>
|
|
|
|
|
|
|
|
<div class="px-l">
|
2021-08-22 20:15:58 +08:00
|
|
|
@include('pages.parts.template-manager', ['page' => $page, 'templates' => $templates])
|
2019-07-07 20:45:46 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-06-16 20:08:04 +08:00
|
|
|
@if($comments->enabled())
|
|
|
|
@include('pages.parts.toolbox-comments')
|
|
|
|
@endif
|
|
|
|
|
2019-07-07 20:45:46 +08:00
|
|
|
</div>
|