discourse/app/assets/javascripts/wizard/templates/components/wizard-field-image.hbs
2016-09-22 09:52:19 -04:00

14 lines
435 B
Handlebars

{{#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"}}
{{fa-icon "picture-o"}}
{{/if}}
<input disabled={{uploading}} type="file" accept="image/*" style="visibility: hidden; position: absolute;" />
</label>