mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
* http://localhost:4200/ui/vault/secrets/kubernetes/kubernetes/roles/test/details readOnly JsonEditor to Hds::CodeBlock * http://localhost:4200/ui/vault/policies/acl/create readonly JsonEditor to Hds::CodeBlock * http://localhost:4200/ui/vault/policy/acl/default readonly JsonEditor to Hds::CodeBlock * http://localhost:4200/ui/vault/access/oidc/scopes/test/details readonly JsonEditor to Hds::CodeBlock * http://localhost:4200/ui/vault/access/oidc/scopes/create readonly JsonEditor to Hds::CodeBlock * fix (some) tests * fix remaining tests * add changelog
70 lines
1.9 KiB
Handlebars
70 lines
1.9 KiB
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
~}}
|
|
|
|
<PageHeader as |p|>
|
|
<p.top>
|
|
<Page::Breadcrumbs @breadcrumbs={{@breadcrumbs}} />
|
|
</p.top>
|
|
<p.levelLeft>
|
|
<h1 class="title is-3" data-test-header-title>
|
|
{{@model.name}}
|
|
</h1>
|
|
</p.levelLeft>
|
|
</PageHeader>
|
|
|
|
<Toolbar aria-label="menu items for managing role {{@model.id}}">
|
|
<ToolbarActions>
|
|
{{#if @model.canDelete}}
|
|
<ConfirmAction
|
|
@buttonText="Delete role"
|
|
class="toolbar-button"
|
|
@buttonColor="secondary"
|
|
@onConfirmAction={{this.delete}}
|
|
data-test-delete
|
|
/>
|
|
<div class="toolbar-separator"></div>
|
|
{{/if}}
|
|
{{#if @model.canGenerateCreds}}
|
|
<ToolbarLink @route="roles.role.credentials" data-test-generate-credentials>
|
|
Generate credentials
|
|
</ToolbarLink>
|
|
{{/if}}
|
|
{{#if @model.canEdit}}
|
|
<ToolbarLink @route="roles.role.edit" data-test-edit>
|
|
Edit role
|
|
</ToolbarLink>
|
|
{{/if}}
|
|
</ToolbarActions>
|
|
</Toolbar>
|
|
|
|
{{#each @model.filteredFormFields as |field|}}
|
|
{{#let (get @model field.name) as |value|}}
|
|
<InfoTableRow
|
|
data-test-filtered-field
|
|
@label={{field.options.label}}
|
|
@value={{if (eq field.options.editType "ttl") (format-duration value) value}}
|
|
/>
|
|
{{/let}}
|
|
{{/each}}
|
|
|
|
{{#if @model.generatedRoleRules}}
|
|
<div class="has-top-margin-xl" data-test-generated-role-rules>
|
|
<h2 class="title is-4">Generated role rules</h2>
|
|
<Hds::CodeBlock @value={{@model.generatedRoleRules}} @language="ruby" @hasCopyButton={{true}} as |CB|>
|
|
<CB.Title @tag="h3">
|
|
Role rules
|
|
</CB.Title>
|
|
</Hds::CodeBlock>
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{#each this.extraFields as |field|}}
|
|
<div class="has-top-margin-xl" data-test-extra-fields={{field.label}}>
|
|
<h2 class="title is-4 is-marginless">{{field.label}}</h2>
|
|
{{#each-in (get @model field.key) as |key value|}}
|
|
<InfoTableRow @label={{key}} @value={{value}} />
|
|
{{/each-in}}
|
|
</div>
|
|
{{/each}} |