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

{{#if (eq mode "create") }} Create Encryption Key {{else if (eq mode "edit") }} Edit Encryption Key {{else}} Encryption Key {{key.id}} {{/if}}

{{#if (eq mode "show") }} {{#if (or capabilities.canUpdate capabilities.canDelete)}}
{{#secret-link secret=key.id mode="edit" replace=true class="button has-icon-right is-ghost is-compact" }} Edit encryption key {{i-con glyph="chevron-right" size=11}} {{/secret-link}}
{{/if}}
{{#secret-link mode="actions" secret=key.id class="button has-icon-right is-ghost is-compact" data-test-transit-key-actions-link=true }} Key actions {{i-con glyph="chevron-right" size=11}} {{/secret-link}}
{{/if}}
{{partial (concat 'partials/transit-form-' mode)}}