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

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