mirror of https://github.com/hashicorp/consul
53 lines
1.2 KiB
Handlebars
53 lines
1.2 KiB
Handlebars
{{#if isAuthorized }}
|
|
{{#if item.ID}}
|
|
{{page-title 'Edit Role'}}
|
|
{{else}}
|
|
{{page-title 'New Role'}}
|
|
{{/if}}
|
|
{{else}}
|
|
{{page-title 'Access Controls'}}
|
|
{{/if}}
|
|
<AppView
|
|
@authorized={{isAuthorized}}
|
|
@enabled={{isEnabled}}
|
|
>
|
|
<BlockSlot @name="notification" as |status type item error|>
|
|
<Consul::Role::Notifications
|
|
@type={{type}}
|
|
@status={{status}}
|
|
@item={{item}}
|
|
@error={{error}}
|
|
/>
|
|
</BlockSlot>
|
|
<BlockSlot @name="breadcrumbs">
|
|
<ol>
|
|
<li><a data-test-back href={{href-to 'dc.acls.roles'}}>All Roles</a></li>
|
|
</ol>
|
|
</BlockSlot>
|
|
<BlockSlot @name="header">
|
|
<h1>
|
|
{{#if isAuthorized }}
|
|
{{#if create }}
|
|
New Role
|
|
{{else}}
|
|
Edit Role
|
|
{{/if}}
|
|
{{else}}
|
|
Access Controls
|
|
{{/if}}
|
|
</h1>
|
|
</BlockSlot>
|
|
<BlockSlot @name="content">
|
|
{{#if (not create) }}
|
|
<div class="definition-table">
|
|
<dl>
|
|
<dt>Role ID</dt>
|
|
<dd>
|
|
<CopyButton @value={{item.ID}} @name="Role ID" @position="top-start" /> {{item.ID}}
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
{{/if}}
|
|
{{ partial 'dc/acls/roles/form'}}
|
|
</BlockSlot>
|
|
</AppView> |