2018-09-15 08:21:02 +02:00
|
|
|
<label class="wizard-btn wizard-btn-upload-file {{if uploading 'disabled'}}">
|
2018-09-09 15:03:46 +02:00
|
|
|
{{#if uploading}}
|
2020-11-26 06:45:30 +01:00
|
|
|
{{wizard-i18n "wizard.uploading"}}
|
2018-09-09 15:03:46 +02:00
|
|
|
{{else}}
|
2020-11-26 06:45:30 +01:00
|
|
|
{{wizard-i18n "wizard.upload"}}
|
2018-09-15 08:21:02 +02:00
|
|
|
{{d-icon "upload"}}
|
2018-09-09 15:03:46 +02:00
|
|
|
{{/if}}
|
|
|
|
|
2019-07-19 05:47:17 +02:00
|
|
|
<input disabled={{uploading}} type="file" accept="{{field.file_types}}" style="visibility: hidden; position: absolute;" />
|
2018-09-09 15:03:46 +02:00
|
|
|
</label>
|
2018-09-15 08:21:02 +02:00
|
|
|
|
|
|
|
{{#if field.value}}
|
2020-05-04 10:09:18 +02:00
|
|
|
{{#unless isImage}}
|
|
|
|
{{field.value.original_filename}}
|
|
|
|
{{else}}
|
|
|
|
<img src={{field.value.url}} class="wizard-image-preview">
|
|
|
|
{{/unless}}
|
2018-09-15 08:21:02 +02:00
|
|
|
{{/if}}
|