discourse/app/assets/javascripts/wizard/templates/components/wizard-field.hbs
Penar Musaraj 85b8fea262
UX: Add Styling step to wizard (#14132)
Refactors three wizard steps (colors, fonts, homepage style) into one new step called Styling.
2021-08-25 17:10:12 -04:00

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}}