mirror of https://github.com/status-im/consul.git
41 lines
1.1 KiB
Handlebars
41 lines
1.1 KiB
Handlebars
{{#if isAuthorized }}
|
|
{{#if item.ID}}
|
|
{{title 'Edit Role'}}
|
|
{{else}}
|
|
{{title 'New Role'}}
|
|
{{/if}}
|
|
{{else}}
|
|
{{title 'Access Controls'}}
|
|
{{/if}}
|
|
{{#app-view class=(concat 'role ' (if (or isAuthorized isEnabled) 'edit' 'list')) loading=isLoading authorized=isAuthorized enabled=isEnabled}}
|
|
{{#block-slot name='notification' as |status type|}}
|
|
{{partial 'dc/acls/roles/notifications'}}
|
|
{{/block-slot}}
|
|
{{#block-slot name='disabled'}}
|
|
{{partial 'dc/acls/disabled'}}
|
|
{{/block-slot}}
|
|
{{#block-slot name='authorization'}}
|
|
{{partial 'dc/acls/authorization'}}
|
|
{{/block-slot}}
|
|
{{#block-slot name='breadcrumbs'}}
|
|
<ol>
|
|
<li><a data-test-back href={{href-to 'dc.acls.roles'}}>All Roles</a></li>
|
|
</ol>
|
|
{{/block-slot}}
|
|
{{#block-slot name='header'}}
|
|
<h1>
|
|
{{#if isAuthorized }}
|
|
{{#if create }}
|
|
New Role
|
|
{{else}}
|
|
Edit Role
|
|
{{/if}}
|
|
{{else}}
|
|
Access Controls
|
|
{{/if}}
|
|
</h1>
|
|
{{/block-slot}}
|
|
{{#block-slot name='content'}}
|
|
{{ partial 'dc/acls/roles/form'}}
|
|
{{/block-slot}}
|
|
{{/app-view}} |