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