0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-24 10:20:28 +01:00
discourse-custom-wizard/assets/javascripts/discourse/components/field-validators.hbs
2024-11-22 16:45:50 +01:00

23 Zeilen
Kein EOL
520 B
Handlebars

{{#if this.field.validations}}
{{#each-in this.field.validations.above as |type validation|}}
{{component
validation.component
field=this.field
type=type
validation=validation
}}
{{/each-in}}
{{yield (hash perform=(action "perform") autocomplete="off")}}
{{#each-in this.field.validations.below as |type validation|}}
{{component
validation.component
field=this.field
type=type
validation=validation
}}
{{/each-in}}
{{else}}
{{yield}}
{{/if}}