{{#if (eq mode "create") }} Create Role {{else if (eq mode "edit")}} Edit Role {{else}} Role {{model.id}} {{/if}}

{{#if (eq mode "show")}} {{#if capabilities.canDelete}} Delete role {{/if}} {{#if capabilities.canUpdate }} Edit role {{/if}} {{/if}} {{#if (or (eq mode 'edit') (eq mode 'create'))}}
{{#each model.attrs as |attr|}} {{/each}}
Cancel
{{else}}
{{#each model.attrs as |attr|}} {{#if (eq attr.type "object")}} {{else if (eq attr.type "array")}} {{else}} {{/if}} {{/each}}
{{/if}}