Files
nomad/ui/app/templates/administration/namespaces/acl-namespace.hbs
Phil Renaud 86c858cdc3 [ui] Sentinel Policies CRUD UI (#20483)
* Gallery allows picking stuff

* Small fixes

* added sentinel templates

* Can set enforcement level on policies

* Working on the interactive sentinel dev mode

* Very rough development flow on FE

* Changed position in gutter menu

* More sentinel stuff

* PR cleanup: removed testmode, removed unneeded mixins and deps

* Heliosification

* Index-level sentinel policy deletion and page title fixes

* Makes the Canaries sentinel policy real and then comments out the unfinished ones

* rename Access Control to Administration in prep for moving Sentinel Policies and Node Pool admin there

* Sentinel policies moved within the Administration section

* Mirage fixture for sentinel policy endpoints

* Description length check and 500 prevention

* Sync review PR feedback addressed, implied butons on radio cards

* Cull un-used sentinel policies

---------

Co-authored-by: Mike Nomitch <mail@mikenomitch.com>
2024-05-22 16:41:50 -04:00

38 lines
1.3 KiB
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: BUSL-1.1
~}}
<Breadcrumb @crumb={{hash label=this.model.name args=(array "administration.namespaces.acl-namespace" this.model.name)}} />
{{page-title "Namespace"}}
<section class="section">
<h1 class="title with-flex" data-test-title>
<div>
{{this.model.name}}
</div>
{{#if (and (not (eq this.model.name "default")) (can "destroy namespace"))}}
<TwoStepButton
data-test-delete-namespace
@alignRight={{true}}
@idleText="Delete Namespace"
@cancelText="Cancel"
@confirmText="Yes, Delete Namespace"
@confirmationMessage="Are you sure?"
@awaitingConfirmation={{this.deleteNamespace.isRunning}}
@disabled={{this.deleteNamespace.isRunning}}
@onConfirm={{perform this.deleteNamespace}}
/>
{{/if}}
</h1>
<Hds::Alert @type="inline" @color="highlight" @icon="info" class="related-entities notification" as |A|>
<A.Title>Related Resources</A.Title>
<A.Description>
View this namespace's <<Hds::Link::Inline @route="jobs" @query={{hash namespace=this.model.name}}>jobs</<Hds::Link::Inline>
or <<Hds::Link::Inline @route="variables" @query={{hash namespace=this.model.name}}>variables</<Hds::Link::Inline>.
</A.Description>
</Hds::Alert>
<NamespaceEditor @namespace={{this.model}} />
</section>