1 <div style="display: block;"
2 refs="editor-toolbox@tab-content"
3 data-tab-content="files"
4 component="attachments"
5 option:attachments:page-id="{{ $page->id ?? 0 }}"
6 class="toolbox-tab-content">
8 <h4>{{ trans('entities.attachments') }}</h4>
9 <div component="dropzone"
10 option:dropzone:url="{{ url('/attachments/upload?uploaded_to=' . $page->id) }}"
11 option:dropzone:success-message="{{ trans('entities.attachments_file_uploaded') }}"
12 option:dropzone:error-message="{{ trans('errors.attachment_upload_error') }}"
13 option:dropzone:upload-limit="{{ config('app.upload_limit') }}"
14 option:dropzone:upload-limit-message="{{ trans('errors.server_upload_limit') }}"
15 option:dropzone:zone-text="{{ trans('entities.attachments_dropzone') }}"
16 option:dropzone:file-accept="*"
19 <div refs="attachments@list-container dropzone@drop-target" class="relative">
20 <p class="text-muted small">{{ trans('entities.attachments_explain') }} <span
21 class="text-warn">{{ trans('entities.attachments_explain_instant_save') }}</span></p>
25 <div class="flex-container-row">
26 <button refs="dropzone@select-button" type="button" class="button outline small">{{ trans('entities.attachments_upload') }}</button>
27 <button refs="attachments@attach-link-button" type="button" class="button outline small">{{ trans('entities.attachments_link') }}</button>
30 <p class="text-muted text-small">{{ trans('entities.attachments_upload_drop') }}</p>
32 <div refs="dropzone@status-area" class="fixed top-right px-m py-m"></div>
36 <div refs="attachments@list-panel">
37 @include('attachments.manager-list', ['attachments' => $page->attachments->all()])
42 <div refs="attachments@links-container" hidden class="link-form-container">
43 @include('attachments.manager-link-form', ['pageId' => $page->id])
46 <div refs="attachments@edit-container" hidden class="attachment-edit-container"></div>