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

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

32 lines
754 B
Handlebars
Raw Normal View History

<label for={{this.field.id}}>
<span class="label-value">
{{this.field.label}}
{{#if this.field.required}}
<span class="field-required">*</span>
{{/if}}
</span>
2016-08-25 13:14:56 -04:00
{{#if this.field.description}}
<div class="field-description">{{html-safe this.field.description}}</div>
2016-09-08 16:58:07 -04:00
{{/if}}
2016-09-13 15:14:17 -04:00
</label>
2016-09-08 16:58:07 -04:00
2016-09-13 15:14:17 -04:00
<div class="input-area">
{{component
this.inputComponentName
field=this.field
step=this.step
fieldClass=this.fieldClass
wizard=this.wizard
}}
2016-09-13 15:14:17 -04:00
</div>
{{#if this.field.errorDescription}}
<div class="field-error-description">{{html-safe this.field.errorDescription}}</div>
2016-09-13 15:14:17 -04:00
{{/if}}
{{#if this.field.extra_description}}
<div class="field-extra-description">{{html-safe this.field.extra_description}}</div>
{{/if}}