mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-02 22:03:48 +08:00
9a17656f88
Updated dom layout of attahcments to prevent nested dropzones (No issue but potential to be one) and updated edit form dropzone handling so the dropzone item card was not as distracting.
21 lines
819 B
PHP
21 lines
819 B
PHP
{{--
|
|
@url - URL to upload to.
|
|
@placeholder - Placeholder text
|
|
@successMessage
|
|
--}}
|
|
<div component="dropzone"
|
|
option:dropzone:url="{{ $url }}"
|
|
option:dropzone:success-message="{{ $successMessage }}"
|
|
option:dropzone:error-message="{{ trans('errors.attachment_upload_error') }}"
|
|
option:dropzone:upload-limit="{{ config('app.upload_limit') }}"
|
|
option:dropzone:upload-limit-message="{{ trans('errors.server_upload_limit') }}"
|
|
option:dropzone:zone-text="{{ trans('entities.attachments_dropzone') }}"
|
|
option:dropzone:file-accept="*"
|
|
class="relative">
|
|
<div refs="dropzone@status-area"></div>
|
|
<button type="button"
|
|
refs="dropzone@select-button dropzone@drop-target"
|
|
class="dropzone-landing-area text-center">
|
|
{{ $placeholder }}
|
|
</button>
|
|
</div> |