{{#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|}} {{#if (and (eq this.mode "edit") attr.options.readOnly)}} {{else}} {{/if}} {{/each}}
{{#if (eq this.mode "create")}} Cancel {{else if (eq this.mode "edit")}} Cancel {{/if}}
{{else}}
{{#each this.model.attrs as |attr|}} {{#if (eq attr.type "object")}} {{else if (eq attr.type "array")}} {{else}} {{/if}} {{/each}}
{{/if}}