0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-14 05:52:52 +01:00
discourse-custom-wizard/assets/javascripts/wizard/templates/components/wizard-field.hbs

30 Zeilen
739 B
Handlebars

2020-03-30 01:53:28 +02:00
<label for={{field.id}} class="field-label">
{{{field.label}}}
2018-04-05 07:49:39 +02:00
</label>
2018-04-05 07:49:39 +02:00
{{#if field.image}}
<div class="field-image"><img src="{{field.image}}"></div>
{{/if}}
2018-04-05 07:49:39 +02:00
{{#if field.description}}
<div class='field-description'>{{cookedDescription}}</div>
{{/if}}
2021-01-26 09:05:10 +01:00
{{#field-validators field=field as |validators|}}
{{#if inputComponentName}}
<div class='input-area'>
{{component inputComponentName field=field step=step fieldClass=fieldClass wizard=wizard }}
2021-01-26 09:05:10 +01:00
</div>
{{/if}}
{{/field-validators}}
{{#if field.char_counter}}
{{#if textType}}
{{char-counter field.value field.max_length}}
{{/if}}
{{/if}}
{{#if field.errorDescription}}
<div class='field-error-description'>{{{field.errorDescription}}}</div>
{{/if}}