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

30 Zeilen
835 B
Handlebars

2021-04-12 16:19:53 +02:00
<label for={{field.id}} class="field-label">
2022-06-15 09:08:28 +02:00
{{html-safe field.translatedLabel}}
2021-04-12 16:19:53 +02:00
</label>
{{#if field.image}}
<div class="field-image"><img src={{field.image}}></div>
{{/if}}
{{#if field.description}}
<div class="field-description">{{cookedDescription}}</div>
{{/if}}
{{#field-validators field=field as |validators|}}
{{#if inputComponentName}}
<div class="input-area">
{{component inputComponentName field=field step=step fieldClass=fieldClass wizard=wizard autocomplete=validators.autocomplete}}
</div>
{{/if}}
{{/field-validators}}
{{#if field.char_counter}}
{{#if textType}}
2023-03-30 06:02:01 +02:00
{{wizard-char-counter field.value field.max_length}}
2021-04-12 16:19:53 +02:00
{{/if}}
{{/if}}
{{#if field.errorDescription}}
<div class="field-error-description">{{html-safe field.errorDescription}}</div>
{{/if}}