0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-25 18:50:27 +01:00
discourse-custom-wizard/assets/javascripts/discourse/components/field-validators.hbs

23 Zeilen
520 B
Handlebars

2024-11-22 16:45:50 +01:00
{{#if this.field.validations}}
{{#each-in this.field.validations.above as |type validation|}}
2023-07-10 08:55:54 +02:00
{{component
validation.component
2024-11-22 16:45:50 +01:00
field=this.field
2023-07-10 08:55:54 +02:00
type=type
validation=validation
}}
{{/each-in}}
{{yield (hash perform=(action "perform") autocomplete="off")}}
2024-11-22 16:45:50 +01:00
{{#each-in this.field.validations.below as |type validation|}}
2023-07-10 08:55:54 +02:00
{{component
validation.component
2024-11-22 16:45:50 +01:00
field=this.field
2023-07-10 08:55:54 +02:00
type=type
validation=validation
}}
{{/each-in}}
{{else}}
{{yield}}
{{/if}}