1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/wizard/templates/components/wizard-field.hbs

23 Zeilen
598 B
Handlebars

<label for={{field.id}}>
{{#if field.label}}
<span class='label-value'>{{field.label}}</span>
{{/if}}
{{#if field.image}}
<div class="field-image"><img src="{{field.image}}"></div>
{{/if}}
{{#if field.description}}
<div class='field-description'>{{cookedDescription}}</div>
{{/if}}
</label>
{{#if inputComponentName}}
<div class='input-area'>
{{component inputComponentName field=field step=step fieldClass=fieldClass wizard=wizard}}
</div>
{{/if}}
{{#if field.errorDescription}}
<div class='field-error-description'>{{{field.errorDescription}}}</div>
{{/if}}