discourse/app/assets/javascripts/wizard/addon/templates/components/wizard-field.hbs
Jarek Radosz fcb4e5a1a1
DEV: Make wizard an ember addon (#17027)
Co-authored-by: David Taylor <david@taylorhq.com>
2022-06-17 14:50:21 +02:00

32 lines
684 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
}}
</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}}