mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 03:23:43 +08:00
26 lines
505 B
Handlebars
26 lines
505 B
Handlebars
<label
|
|
class="wizard-container__button wizard-container__button-upload
|
|
{{if this.uploading 'disabled'}}"
|
|
>
|
|
{{#if this.uploading}}
|
|
{{i18n "wizard.uploading"}}
|
|
{{else}}
|
|
{{i18n "wizard.upload"}}
|
|
{{/if}}
|
|
|
|
<input
|
|
class="wizard-hidden-upload-field"
|
|
disabled={{this.uploading}}
|
|
type="file"
|
|
accept="image/*"
|
|
/>
|
|
</label>
|
|
|
|
{{#if this.field.value}}
|
|
{{component
|
|
this.previewComponent
|
|
field=this.field
|
|
fieldClass=this.fieldClass
|
|
wizard=this.wizard
|
|
}}
|
|
{{/if}} |