discourse/app/assets/javascripts/wizard/addon/components/wizard-field.hbs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
922 B
Handlebars
Raw Normal View History

{{#if this.field.label}}
<label for={{this.field.id}}>
<span class="wizard-container__label">
{{this.field.label}}
</span>
{{#if this.field.required}}
<span class="wizard-container__label required">*</span>
{{/if}}
2016-08-26 01:14:56 +08:00
{{#if this.field.description}}
<div class="wizard-container__description">{{html-safe
this.field.description
}}</div>
{{/if}}
</label>
{{/if}}
2016-09-09 04:58:07 +08:00
<div class="wizard-container__input">
{{component
this.inputComponentName
field=this.field
step=this.step
fieldClass=this.fieldClass
wizard=this.wizard
}}
2016-09-14 03:14:17 +08:00
</div>
{{#if this.field.errorDescription}}
<div class="wizard-container__description error">{{html-safe
this.field.errorDescription
}}</div>
2016-09-14 03:14:17 +08:00
{{/if}}
{{#if this.field.extra_description}}
<div class="wizard-container__description extra">{{html-safe
this.field.extra_description
}}</div>
{{/if}}