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

16 lines
429 B
Handlebars
Raw Normal View History

2016-09-13 15:14:17 -04:00
<label for={{field.id}}>
2016-08-25 13:14:56 -04:00
<span class='label-value'>{{field.label}}</span>
2016-09-08 16:58:07 -04:00
{{#if field.description}}
<div class='field-description'>{{{field.description}}}</div>
{{/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'>
2016-09-16 16:12:56 -04:00
{{component inputComponentName field=field step=step fieldClass=fieldClass wizard=wizard}}
2016-09-13 15:14:17 -04:00
</div>
2016-09-13 15:14:17 -04:00
{{#if field.errorDescription}}
2017-04-21 09:37:24 -04:00
<div class='field-error-description'>{{{field.errorDescription}}}</div>
2016-09-13 15:14:17 -04:00
{{/if}}