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

33 lines
766 B
Handlebars

<label for={{field.id}}>
<span class="label-value">
{{field.label}}
{{#if field.required}}
<span class="field-required">*</span>
{{/if}}
</span>
{{#if field.description}}
<div class="field-description">{{html-safe field.description}}</div>
{{/if}}
</label>
<div class="input-area">
{{component
inputComponentName
field=field step=step
fieldClass=fieldClass
wizard=wizard
stylingDropdownChanged=stylingDropdownChanged
stylingDropdown=stylingDropdown
}}
</div>
{{#if field.errorDescription}}
<div class="field-error-description">{{html-safe field.errorDescription}}</div>
{{/if}}
{{#if field.extra_description}}
<div class="field-extra-description">{{html-safe field.extra_description}}</div>
{{/if}}