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

{{#if (eq this.mode "show")}} {{#if this.model.canDelete}} Delete role
{{/if}} {{#if (eq this.model.keyType "otp")}} Generate Credential {{else}} Sign Keys {{/if}} {{#if (or this.model.canUpdate this.model.canDelete)}} Edit role {{/if}}
{{/if}} {{#if (or (eq this.mode "edit") (eq this.mode "create"))}}
Cancel
{{else}}
{{#each this.model.showFields as |attr|}} {{#if (eq attr.type "object")}} {{else}} {{/if}} {{/each}}
{{/if}}