0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-10 12:22:54 +01:00
discourse-custom-wizard/assets/javascripts/wizard/templates/components/field-validators.hbs
2021-02-15 19:02:11 +05:30

13 Zeilen
419 B
Handlebars

{{#if field.validations}}
{{#each-in field.validations.above as |name validation|}}
{{component validation.component field=field name=name validation=validation}}
{{/each-in}}
{{yield (hash perform=(action 'perform'))}}
{{#each-in field.validations.below as |name validation|}}
{{component validation.component field=field name=name validation=validation}}
{{/each-in}}
{{else}}
{{yield}}
{{/if}}