{{#if (can 'setGrants role' @model)}}
{{! Add grant field (only one per form) }}
{{t
'resources.role.grant.actions.create'
}}
{{t 'actions.add'}}
{{/if}}
{{!--
{{#if @model.errors.grants}}
{{#each @model.errors.grants as |error|}}
{{error.message}}
{{/each}}
{{/if}}
--}}
{{#each this.grants as |grant|}}
{{t 'form.grant.label'}}
{{#if (can 'setGrants role' @model)}}
{{t 'actions.remove'}}
{{/if}}
{{/each}}
{{#if (can 'setGrants role' @model)}}
{{/if}}