0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-27 03:20:27 +01:00
discourse-custom-wizard/assets/javascripts/wizard/templates/components/wizard-field.hbs
2021-01-08 12:20:57 +05:30

25 Zeilen
598 B
Handlebars

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