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

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

26 lines
505 B
Handlebars
Raw Normal View History

<label
class="wizard-container__button wizard-container__button-upload
{{if this.uploading 'disabled'}}"
>
{{#if this.uploading}}
2016-09-08 16:58:07 -04:00
{{i18n "wizard.uploading"}}
{{else}}
{{i18n "wizard.upload"}}
{{/if}}
<input
class="wizard-hidden-upload-field"
disabled={{this.uploading}}
type="file"
accept="image/*"
/>
2016-09-08 16:58:07 -04:00
</label>
{{#if this.field.value}}
{{component
this.previewComponent
field=this.field
fieldClass=this.fieldClass
wizard=this.wizard
}}
{{/if}}