open-vault/ui/app/templates/components/identity/entity-nav.hbs

43 lines
1.6 KiB
Handlebars
Raw Normal View History

<PageHeader as |p|>
<p.levelLeft>
<h1 class="title is-3">
{{capitalize (pluralize identityType)}}
</h1>
</p.levelLeft>
<p.levelRight>
{{#if (eq identityType "entity")}}
<a href="{{href-to 'vault.cluster.access.identity.merge' (pluralize identityType)}}" class="button has-icon-right is-ghost is-compact" data-test-entity-merge-link=true>
Merge {{pluralize identityType}}
2018-04-03 14:16:57 +00:00
{{i-con glyph="chevron-right" size=11}}
</a>
{{/if}}
<a href="{{href-to 'vault.cluster.access.identity.create' (pluralize identityType)}}" class="button has-icon-right is-ghost is-compact" data-test-entity-create-link=true>
Create {{identityType}}
{{i-con glyph="chevron-right" size=11}}
</a>
</p.levelRight>
</PageHeader>
2018-04-03 14:16:57 +00:00
<div class="box is-sideless is-fullwidth is-paddingless is-marginless">
<nav class="tabs sub-nav">
<ul>
{{#link-to "vault.cluster.access.identity.index" tagName="li"}}
<a href={{href-to "vault.cluster.access.identity.index" (pluralize identityType)}}>
2018-04-03 14:16:57 +00:00
{{capitalize (pluralize identityType)}}
</a>
{{/link-to}}
{{#link-to "vault.cluster.access.identity.aliases.index" tagName="li"}}
<a href={{href-to "vault.cluster.access.identity.aliases.index" (pluralize identityType)}}>
2018-04-03 14:16:57 +00:00
Aliases
</a>
{{/link-to}}
</ul>
</nav>
</div>
<div class="box is-sideless has-background-grey-lighter has-short-padding is-marginless">
<div class="level">
<div class="level-left">
{{identity/lookup-input type=identityType}}
</div>
</div>
</div>