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

{{#if (eq mode "show") }} {{#if model.canGenerate}} Generate Certificate {{/if}} {{#if model.canSign}} Sign Certificate {{/if}} {{#if (and (or model.canGenerate model.canSign) (or model.canDelete model.canEdit))}}
{{/if}} {{#if model.canDelete}} Delete role {{/if}} {{#if model.canEdit}} Edit role {{/if}} {{/if}} {{#if (or (eq mode 'edit') (eq mode 'create'))}}
{{partial "partials/form-field-groups-loop"}}
Cancel
{{else}}
{{#each 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}}