chore: 🤖 Add initial page layout for code editor + sidebar (#3180)
* chore: 🤖 Add initial page layout for code editor + sidebar * test: 💍 add missing a11y ignores for exisitng color issue ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-18460
This commit is contained in:
1 parent
5048fd478a
commit
fd1eba617b
10 files changed
+180
No files matched your search
@@ -0,0 +1,31 @@
|
||||
{{!
|
||||
Copyright IBM Corp. 2021, 2026
|
||||
SPDX-License-Identifier: BUSL-1.1
|
||||
}}
|
||||
|
||||
<Rose::Form class='full-width' as |form|>
|
||||
{{! TODO: Add responsive options to @colspan once we upgrade to HDS v6.0.0}}
|
||||
<Hds::Layout::Grid @gap='32' as |LG|>
|
||||
<LG.Item @colspan={{2}}>
|
||||
{{! TODO: Add grants code editor. }}
|
||||
</LG.Item>
|
||||
|
||||
<LG.Item @colspan={{1}}>
|
||||
{{! TODO: Add string options and actions. }}
|
||||
</LG.Item>
|
||||
</Hds::Layout::Grid>
|
||||
|
||||
<form.actions class='margin-top-l'>
|
||||
<:actions>
|
||||
<Hds::ButtonSet>
|
||||
<Hds::Button type='submit' @text={{t 'actions.save'}} />
|
||||
<Hds::Button @text={{t 'actions.cancel'}} @color='secondary' />
|
||||
<Hds::Button
|
||||
@text={{t 'actions.export'}}
|
||||
@color='tertiary'
|
||||
@icon='upload'
|
||||
/>
|
||||
</Hds::ButtonSet>
|
||||
</:actions>
|
||||
</form.actions>
|
||||
</Rose::Form>
|
||||
@@ -45,6 +45,12 @@
|
||||
>
|
||||
{{t 'resources.role.grant-templates.actions.add-grant-templates'}}
|
||||
</dd.Interactive>
|
||||
<dd.Interactive
|
||||
@route='scopes.scope.roles.role.edit-grants'
|
||||
data-test-manage-dropdown-grants
|
||||
>
|
||||
{{t 'resources.role.edit-grants.title'}}
|
||||
</dd.Interactive>
|
||||
{{/if}}
|
||||
{{#if perms.canDelete}}
|
||||
{{#if
|
||||
|
||||
@@ -58,6 +58,7 @@ Router.map(function () {
|
||||
this.route('manage-custom-scopes');
|
||||
this.route('manage-org-projects', { path: ':org_id' });
|
||||
});
|
||||
this.route('edit-grants');
|
||||
});
|
||||
this.route('new');
|
||||
});
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Copyright IBM Corp. 2021, 2026
|
||||
* SPDX-License-Identifier: BUSL-1.1
|
||||
*/
|
||||
|
||||
import Route from '@ember/routing/route';
|
||||
|
||||
export default class ScopesScopeRolesRoleEditGrantsRoute extends Route {}
|
||||
@@ -0,0 +1,34 @@
|
||||
{{!
|
||||
Copyright IBM Corp. 2021, 2026
|
||||
SPDX-License-Identifier: BUSL-1.1
|
||||
}}
|
||||
|
||||
{{page-title (t 'resources.role.edit-grants.title')}}
|
||||
<Breadcrumbs::Item
|
||||
@text={{t 'resources.role.edit-grants.title'}}
|
||||
@route='scopes.scope.roles.role.edit-grants'
|
||||
/>
|
||||
|
||||
<Rose::Layout::Page as |page|>
|
||||
|
||||
<page.header>
|
||||
<Hds::PageHeader as |PH|>
|
||||
<PH.Breadcrumb>
|
||||
<Breadcrumbs::Container />
|
||||
</PH.Breadcrumb>
|
||||
<PH.Title>
|
||||
{{t 'resources.role.edit-grants.title'}}
|
||||
{{! TODO: Add correct doc link once it's created}}
|
||||
{{! <DocLink @doc='role.' /> }}
|
||||
</PH.Title>
|
||||
<PH.Description>
|
||||
{{t 'resources.role.edit-grants.description'}}
|
||||
</PH.Description>
|
||||
</Hds::PageHeader>
|
||||
</page.header>
|
||||
|
||||
<page.body>
|
||||
<Form::Role::EditGrants />
|
||||
</page.body>
|
||||
|
||||
</Rose::Layout::Page>
|
||||
Reference in new issue
Block a user