consul/ui-v2/app/templates/dc/acls/roles/edit.hbs

32 lines
975 B
Handlebars

{{#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}}