2020-01-28 14:25:52 +00:00
|
|
|
{{#if isAuthorized }}
|
|
|
|
{{#if item.ID}}
|
|
|
|
{{title 'Edit Role'}}
|
|
|
|
{{else}}
|
|
|
|
{{title 'New Role'}}
|
|
|
|
{{/if}}
|
|
|
|
{{else}}
|
|
|
|
{{title 'Access Controls'}}
|
|
|
|
{{/if}}
|
2020-02-19 19:26:38 +00:00
|
|
|
<AppView @class={{concat "role " (if (or isAuthorized isEnabled) "edit" "list")}} @loading={{isLoading}} @authorized={{isAuthorized}} @enabled={{isEnabled}}>
|
|
|
|
<BlockSlot @name="notification" as |status type|>
|
2019-05-01 18:09:29 +00:00
|
|
|
{{partial 'dc/acls/roles/notifications'}}
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="disabled">
|
2019-05-01 18:09:29 +00:00
|
|
|
{{partial 'dc/acls/disabled'}}
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="authorization">
|
2019-05-01 18:09:29 +00:00
|
|
|
{{partial 'dc/acls/authorization'}}
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="breadcrumbs">
|
2019-05-01 18:09:29 +00:00
|
|
|
<ol>
|
|
|
|
<li><a data-test-back href={{href-to 'dc.acls.roles'}}>All Roles</a></li>
|
|
|
|
</ol>
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="header">
|
2019-05-01 18:09:29 +00:00
|
|
|
<h1>
|
|
|
|
{{#if isAuthorized }}
|
|
|
|
{{#if create }}
|
|
|
|
New Role
|
|
|
|
{{else}}
|
|
|
|
Edit Role
|
|
|
|
{{/if}}
|
|
|
|
{{else}}
|
|
|
|
Access Controls
|
|
|
|
{{/if}}
|
|
|
|
</h1>
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="content">
|
2019-05-01 18:09:29 +00:00
|
|
|
{{ partial 'dc/acls/roles/form'}}
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
|
|
|
</AppView>
|