-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(role index view): add roles list view
- Loading branch information
Showing
10 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import PaginationController from "ember-emeis/controllers/pagination"; | ||
|
||
export default class RolesIndexController extends PaginationController {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Route from "@ember/routing/route"; | ||
|
||
export default class RolesRoute extends Route {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Route from "@ember/routing/route"; | ||
|
||
export default class RolesIndexRoute extends Route {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<SectionTitle @model="roles" /> | ||
|
||
{{outlet}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<DataTable | ||
@modelName="role" | ||
@page={{this.page}} | ||
@search={{this.search}} | ||
@updatePage={{fn this.updateQueryParam "page"}} | ||
@updateSearch={{fn this.updateQueryParam "search"}} as |table| | ||
> | ||
<table.head> | ||
<th> | ||
{{t "emeis.roles.headings.name"}} | ||
</th> | ||
<th> | ||
{{t "emeis.roles.headings.slug"}} | ||
</th> | ||
<th> | ||
{{t "emeis.roles.headings.description"}} | ||
</th> | ||
</table.head> | ||
<table.body as |body|> | ||
<body.row> | ||
{{#with body.model as |role|}} | ||
<td class="uk-width-1-4" data-test-role-name={{role.id}}> | ||
<LinkTo @route="roles.edit" @model={{role}} class="uk-link-text"> | ||
{{role.name}} | ||
</LinkTo> | ||
</td> | ||
|
||
<td class="uk-width-1-4" data-test-role-slug={{role.id}}> | ||
{{role.slug}} | ||
</td> | ||
|
||
<td class="uk-width-expand" data-test-role-desc={{role.id}}> | ||
{{role.description}} | ||
</td> | ||
{{/with}} | ||
</body.row> | ||
</table.body> | ||
</DataTable> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from "ember-emeis/controllers/roles/index"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from "ember-emeis/routes/roles"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from "ember-emeis/routes/roles/index"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from "ember-emeis/templates/roles"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from "ember-emeis/templates/roles/index"; |