2020-01-28 14:25:52 +00:00
|
|
|
{{#if isAuthorized }}
|
|
|
|
{{#if create }}
|
|
|
|
{{title 'New Policy'}}
|
|
|
|
{{else}}
|
|
|
|
{{title 'Edit Policy'}}
|
|
|
|
{{/if}}
|
|
|
|
{{else}}
|
|
|
|
{{title 'Access Controls'}}
|
|
|
|
{{/if}}
|
2018-10-19 15:17:02 +00:00
|
|
|
{{#app-view class=(concat 'policy ' (if (or isAuthorized isEnabled) 'edit' 'list')) loading=isLoading authorized=isAuthorized enabled=isEnabled}}
|
2020-01-15 09:15:54 +00:00
|
|
|
{{#block-slot name='notification' as |status type|}}
|
2018-10-19 15:17:02 +00:00
|
|
|
{{partial 'dc/acls/policies/notifications'}}
|
|
|
|
{{/block-slot}}
|
2020-01-15 09:15:54 +00:00
|
|
|
{{#block-slot name='disabled'}}
|
2018-10-19 15:17:02 +00:00
|
|
|
{{partial 'dc/acls/disabled'}}
|
|
|
|
{{/block-slot}}
|
2020-01-15 09:15:54 +00:00
|
|
|
{{#block-slot name='authorization'}}
|
2018-10-19 15:17:02 +00:00
|
|
|
{{partial 'dc/acls/authorization'}}
|
|
|
|
{{/block-slot}}
|
2020-01-15 09:15:54 +00:00
|
|
|
{{#block-slot name='breadcrumbs'}}
|
2018-10-19 15:17:02 +00:00
|
|
|
<ol>
|
|
|
|
<li><a data-test-back href={{href-to 'dc.acls.policies'}}>All Policies</a></li>
|
|
|
|
</ol>
|
|
|
|
{{/block-slot}}
|
2020-01-15 09:15:54 +00:00
|
|
|
{{#block-slot name='header'}}
|
2018-10-19 15:17:02 +00:00
|
|
|
<h1>
|
|
|
|
{{#if isAuthorized }}
|
|
|
|
{{#if create }}
|
|
|
|
New Policy
|
|
|
|
{{else}}
|
2019-05-01 18:09:29 +00:00
|
|
|
{{#if (eq (policy/typeof item) 'policy-management')}}
|
2018-10-19 15:17:02 +00:00
|
|
|
View Policy
|
|
|
|
{{else}}
|
|
|
|
Edit Policy
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
{{else}}
|
|
|
|
Access Controls
|
|
|
|
{{/if}}
|
|
|
|
</h1>
|
|
|
|
{{/block-slot}}
|
2020-01-15 09:15:54 +00:00
|
|
|
{{#block-slot name='content'}}
|
2019-05-01 18:09:29 +00:00
|
|
|
{{#if (eq (policy/typeof item) 'policy-management')}}
|
2018-10-19 15:17:02 +00:00
|
|
|
{{ partial 'dc/acls/policies/view'}}
|
|
|
|
{{else}}
|
|
|
|
{{ partial 'dc/acls/policies/form'}}
|
|
|
|
{{/if}}
|
|
|
|
{{/block-slot}}
|
|
|
|
{{/app-view}}
|