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

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

{{#if (and (not-eq mode 'create') (or capabilities.canUpdate capabilities.canDelete))}}
{{input id="edit" type="checkbox" name="navToEdit" class="switch is-rounded is-success is-small" checked=(eq mode 'edit') change=(action (nav-to-route (concat 'vault.cluster.secrets.backend.' (if (eq mode 'show') 'edit' 'show')) key.id replace=true) ) }}
{{/if}}
{{partial partialName}}