2018-06-12 21:06:37 +00:00
|
|
|
<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
|
2018-06-12 21:06:37 +00:00
|
|
|
mode="edit"
|
|
|
|
replace=true
|
2018-04-03 14:16:57 +00:00
|
|
|
class="button has-icon-right is-ghost is-compact"
|
2018-06-12 21:06:37 +00:00
|
|
|
}}
|
|
|
|
Edit encryption key
|
2018-04-03 14:16:57 +00:00
|
|
|
{{i-con glyph="chevron-right" size=11}}
|
|
|
|
{{/secret-link}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2018-06-12 21:06:37 +00:00
|
|
|
<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>
|
2018-06-12 21:06:37 +00:00
|
|
|
</p.levelRight>
|
|
|
|
</PageHeader>
|
2018-04-03 14:16:57 +00:00
|
|
|
|
|
|
|
{{partial (concat 'partials/transit-form-' mode)}}
|