{{key-value-header
baseKey=model
path="vault.cluster.secrets.backend.list"
mode=mode
root=root
showCurrent=true
}}
{{#if (eq mode "create") }}
Create an SSH role
{{else if (eq mode 'edit')}}
Edit SSH role
{{else}}
SSH role {{model.id}}
{{/if}}
{{#if (eq mode "show")}}
{{#if (eq model.keyType "otp")}}
Generate Credential
{{else}}
Sign Keys
{{/if}}
{{#if (or model.canUpdate model.canDelete)}}
{{/if}}
{{#if model.canDelete}}
Delete role
{{/if}}
{{#if (or model.canUpdate model.canDelete)}}
Edit role
{{/if}}
{{/if}}
{{#if (or (eq mode 'edit') (eq mode 'create'))}}
{{partial 'partials/role-ssh/form'}}
{{else}}
{{partial 'partials/role-ssh/show'}}
{{/if}}