0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-12-02 13:31:09 +01:00
discourse-custom-wizard/assets/javascripts/wizard/templates/components/field-validators.hbs

14 Zeilen
411 B
Handlebars

2021-01-26 09:05:10 +01:00
{{#if field.validations}}
2021-02-15 09:28:27 +01:00
{{#each-in field.validations.above as |name validation|}}
{{component validation.component field=field name=name validation=validation}}
{{/each-in}}
2021-01-26 09:05:10 +01:00
2021-02-15 09:28:27 +01:00
{{yield (hash perform=(action 'perform'))}}
2021-01-26 09:05:10 +01:00
2021-02-15 09:28:27 +01:00
{{#each-in field.validations.below as |name validation|}}
{{component validation.component field=field name=name validation=validation}}
{{/each-in}}
2021-01-26 09:05:10 +01:00
{{else}}
2021-02-15 09:28:27 +01:00
{{yield}}
2021-01-26 09:05:10 +01:00
{{/if}}