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

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

33 lines
766 B
Handlebars
Raw Normal View History

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