discourse/app/assets/javascripts/wizard/addon/templates/components/wizard-field-image.hbs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
459 B
Handlebars
Raw Normal View History

{{#if this.field.value}}
{{component this.previewComponent field=this.field fieldClass=this.fieldClass wizard=this.wizard}}
{{/if}}
<label class="wizard-btn wizard-btn-upload {{if this.uploading "disabled"}}">
{{#if this.uploading}}
2016-09-09 04:58:07 +08:00
{{i18n "wizard.uploading"}}
{{else}}
{{i18n "wizard.upload"}}
2019-01-22 19:02:02 +08:00
{{d-icon "far-image"}}
2016-09-09 04:58:07 +08:00
{{/if}}
<input class="wizard-hidden-upload-field" disabled={{this.uploading}} type="file" accept="image/*">
2016-09-09 04:58:07 +08:00
</label>