- <div component="tabs" refs="attachments@mainTabs" class="tab-container">
- <div role="tablist">
- <button id="attachment-tab-items"
- role="tab"
- aria-selected="true"
- aria-controls="attachment-panel-items"
- type="button"
- class="tab-item">{{ trans('entities.attachments_items') }}</button>
- <button id="attachment-tab-upload"
- role="tab"
- aria-selected="false"
- aria-controls="attachment-panel-upload"
- type="button"
- class="tab-item">{{ trans('entities.attachments_upload') }}</button>
- <button id="attachment-tab-links"
- role="tab"
- aria-selected="false"
- aria-controls="attachment-panel-links"
- type="button"
- class="tab-item">{{ trans('entities.attachments_link') }}</button>
- </div>
- <div id="attachment-panel-items"
- tabindex="0"
- role="tabpanel"
- aria-labelledby="attachment-tab-items"
- refs="attachments@list">
- @include('attachments.manager-list', ['attachments' => $page->attachments->all()])
- </div>
- <div id="attachment-panel-upload"
- tabindex="0"
- role="tabpanel"
- hidden
- aria-labelledby="attachment-tab-upload">
- @include('form.dropzone', [
- 'placeholder' => trans('entities.attachments_dropzone'),
- 'url' => url('/attachments/upload?uploaded_to=' . $page->id),
- 'successMessage' => trans('entities.attachments_file_uploaded'),
- ])
- </div>
- <div id="attachment-panel-links"
- tabindex="0"
- role="tabpanel"
- hidden
- aria-labelledby="attachment-tab-links"
- class="link-form-container">
- @include('attachments.manager-link-form', ['pageId' => $page->id])
- </div>
+ <hr class="mb-s">
+
+ <div class="flex-container-row">
+ <button refs="dropzone@select-button" type="button" class="button outline small">{{ trans('entities.attachments_upload') }}</button>
+ <button refs="attachments@attach-link-button" type="button" class="button outline small">{{ trans('entities.attachments_link') }}</button>
+ </div>
+ <div>
+ <p class="text-muted text-small">{{ trans('entities.attachments_upload_drop') }}</p>