1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/wizard/templates/components/field-validators.hbs

13 Zeilen
438 B
Handlebars

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