Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-30 04:30:29 +01:00
c45e51fcb6
* Code formatting * Both "type" and "name" are used to refer to the validation type. Changed all to "type". * Added proper abstraction of realtime validation classes on server * UI improvements in admin and wizard
13 Zeilen
419 B
Handlebars
13 Zeilen
419 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'))}}
|
|
|
|
{{#each-in field.validations.below as |type validation|}}
|
|
{{component validation.component field=field type=type validation=validation}}
|
|
{{/each-in}}
|
|
{{else}}
|
|
{{yield}}
|
|
{{/if}}
|