mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-11 16:21:24 -05:00
16 lines
466 B
Handlebars
16 lines
466 B
Handlebars
<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>
|
|
|
|
{{#if field.value}}
|
|
<div class='wizard-image-preview {{fieldClass}}'>
|
|
<img src={{field.value}} class={{fieldClass}}>
|
|
</div>
|
|
{{/if}}
|