Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-10-29 23:33:42 +01:00
38 Zeilen
Kein EOL
873 B
Handlebars
38 Zeilen
Kein EOL
873 B
Handlebars
<label for={{field.id}} class="field-label">
|
|
{{html-safe field.translatedLabel}}
|
|
</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}}
|
|
{{wizard-char-counter field.value field.max_length}}
|
|
{{/if}}
|
|
{{/if}}
|
|
|
|
{{#if field.errorDescription}}
|
|
<div class="field-error-description">{{html-safe
|
|
field.errorDescription
|
|
}}</div>
|
|
{{/if}} |