14 Zeilen
365 B
Handlebars
14 Zeilen
365 B
Handlebars
|
{{#if field.validations}}
|
||
|
{{#each field.validations.top as |validation|}}
|
||
|
{{validation.component field=field perform=perform}}
|
||
|
{{/each}}
|
||
|
|
||
|
{{yield (hash perform=(action 'perform')) }}
|
||
|
|
||
|
{{#each field.validations.bottom as |validation|}}
|
||
|
{{validation.component field=field perform=perform}}
|
||
|
{{/each}}
|
||
|
{{else}}
|
||
|
{{yield}}
|
||
|
{{/if}}
|