Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-30 04:30:29 +01:00
16 Zeilen
463 B
Handlebars
16 Zeilen
463 B
Handlebars
<label class="wizard-btn wizard-btn-upload-file {{if uploading 'disabled'}}">
|
|
{{#if uploading}}
|
|
{{i18n "wizard.uploading"}}
|
|
{{else}}
|
|
{{i18n "wizard.upload"}}
|
|
{{d-icon "upload"}}
|
|
{{/if}}
|
|
|
|
<input disabled={{uploading}} type="file" accept="{{field.file_types}}" style="visibility: hidden; position: absolute;" />
|
|
</label>
|
|
|
|
{{#if field.value}}
|
|
<a href="{{field.value.url}}" class="filename">
|
|
{{field.value.original_filename}}
|
|
</a>
|
|
{{/if}}
|