0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-10 12:22:54 +01:00
discourse-custom-wizard/assets/javascripts/wizard/templates/components/wizard-field-upload.hbs

17 Zeilen
466 B
Handlebars

<label class="wizard-btn wizard-btn-upload-file {{if uploading 'disabled'}}">
2018-09-09 15:03:46 +02:00
{{#if uploading}}
{{i18n "wizard.uploading"}}
{{else}}
{{i18n "wizard.upload"}}
{{d-icon "upload"}}
2018-09-09 15:03:46 +02:00
{{/if}}
2018-09-11 17:51:40 +02:00
<input disabled={{uploading}} type="file" accept="image/*,application/pdf" style="visibility: hidden; position: absolute;" />
2018-09-09 15:03:46 +02:00
</label>
{{#if field.value}}
<a href="{{field.value.url}}" class="filename">
{{field.value.original_filename}}
</a>
{{/if}}