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

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