0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-09 20:02:54 +01:00

Create wizard-field-upload.hbs

Dieser Commit ist enthalten in:
James Hahn II 2018-09-09 08:03:46 -05:00 committet von GitHub
Ursprung a0a037a41b
Commit 5c811bbb2f
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -0,0 +1,14 @@
{{#if field.value}}
{{component previewComponent field=field fieldClass=fieldClass wizard=wizard}}
{{/if}}
<label class="wizard-btn wizard-btn-upload {{if uploading 'disabled'}}">
{{#if uploading}}
{{i18n "wizard.uploading"}}
{{else}}
{{i18n "wizard.upload"}}
{{d-icon "picture-o"}}
{{/if}}
<input disabled={{uploading}} type="file" accept="image/*" style="visibility: hidden; position: absolute;" />
</label>