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
419 B
Handlebars
Raw Normal View History

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