open-vault/ui/app/templates/components/transit-edit.hbs

55 lines
1.4 KiB
Handlebars
Raw Normal View History

<PageHeader as |p|>
<p.top>
{{key-value-header
baseKey=key
path="vault.cluster.secrets.backend.list"
mode=mode
root=root
showCurrent=true
}}
</p.top>
<p.levelLeft>
<h1 class="title is-3">
{{#if (eq mode "create") }}
Create Encryption Key
{{else if (eq mode "edit") }}
Edit Encryption Key
{{else}}
Encryption Key <code>{{key.id}}</code>
{{/if}}
</h1>
</p.levelLeft>
<p.levelRight>
<div class="field is-grouped">
{{#if (eq mode "show") }}
{{#if (or capabilities.canUpdate capabilities.canDelete)}}
2018-04-03 14:16:57 +00:00
<div class="control">
{{#secret-link
secret=key.id
mode="edit"
replace=true
2018-04-03 14:16:57 +00:00
class="button has-icon-right is-ghost is-compact"
}}
Edit encryption key
2018-04-03 14:16:57 +00:00
{{i-con glyph="chevron-right" size=11}}
{{/secret-link}}
</div>
{{/if}}
<div class="control">
{{#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}}
</div>
{{/if}}
2018-04-03 14:16:57 +00:00
</div>
</p.levelRight>
</PageHeader>
2018-04-03 14:16:57 +00:00
{{partial (concat 'partials/transit-form-' mode)}}