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

15 lines
434 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"}}
{{d-icon "picture-o"}}
2016-09-08 16:58:07 -04:00
{{/if}}
<input disabled={{uploading}} type="file" accept="image/*" style="visibility: hidden; position: absolute;" />
2016-09-08 16:58:07 -04:00
</label>