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

{{#if (eq this.mode "show")}} {{#if this.model.canDelete}} Delete role
{{/if}} {{#if this.model.canGenerate}} Generate Certificate {{/if}} {{#if this.model.canSign}} Sign Certificate {{/if}} {{#if this.model.canEdit}} Edit role {{/if}}
{{/if}} {{#if (or (eq this.mode "edit") (eq this.mode "create"))}}
Cancel
{{else}}
{{#each this.model.fieldGroups as |fieldGroup|}} {{#each-in fieldGroup as |group fields|}} {{#if (or (eq group "default") (eq group "Options"))}} {{#each fields as |attr|}} {{/each}} {{else}}

{{group}}

{{#each fields as |attr|}} {{/each}}
{{/if}} {{/each-in}} {{/each}}
{{/if}}