{{key-value-header baseKey=model path="vault.cluster.secrets.backend.list" mode=mode root=root showCurrent=true }}

{{#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 (or model.canUpdate model.canDelete)}} Edit role {{/if}} {{#if model.canGenerate}} Generate Certificate {{/if}} {{#if model.canSign}} Sign Certificate {{/if}} {{/if}} {{#if (or (eq mode 'edit') (eq mode 'create'))}} {{partial 'partials/role-pki/form'}} {{else}} {{partial 'partials/role-pki/show'}} {{/if}}