2024-11-06 10:06:09 +01:00
|
|
|
<div class={{this.wrapperClass}}>
|
2023-07-10 08:55:54 +02:00
|
|
|
<input
|
2024-11-06 10:06:09 +01:00
|
|
|
{{did-insert this.setup}}
|
|
|
|
disabled={{this.uppyUpload.uploading}}
|
|
|
|
id={{this.inputId}}
|
2023-07-10 08:55:54 +02:00
|
|
|
class="hidden-upload-field"
|
|
|
|
type="file"
|
2024-11-06 10:06:09 +01:00
|
|
|
accept={{this.field.file_types}}
|
2023-07-10 08:55:54 +02:00
|
|
|
style="visibility: hidden; position: absolute;"
|
|
|
|
/>
|
2024-11-06 10:06:09 +01:00
|
|
|
<DButton
|
|
|
|
@translatedLabel={{this.uploadLabel}}
|
|
|
|
@translatedTitle={{this.uploadLabel}}
|
|
|
|
@icon="upload"
|
|
|
|
@disabled={{this.uppyUpload.uploading}}
|
|
|
|
@action={{this.chooseFiles}}
|
|
|
|
class="wizard-btn wizard-btn-upload-file"
|
|
|
|
/>
|
|
|
|
{{#if this.field.value}}
|
|
|
|
{{#if this.isImage}}
|
|
|
|
<img src={{this.field.value.url}} class="wizard-image-preview" />
|
|
|
|
{{else}}
|
|
|
|
{{this.field.value.original_filename}}
|
|
|
|
{{/if}}
|
2021-04-12 16:19:53 +02:00
|
|
|
{{/if}}
|
2024-11-06 10:06:09 +01:00
|
|
|
</div>
|