From 5dccab401512bfd2372359be8cbe799144d9ddc4 Mon Sep 17 00:00:00 2001 From: Jonas Cosandey Date: Thu, 25 Jun 2020 13:11:24 +0200 Subject: [PATCH] feat(role index view): add roles list view --- addon/controllers/roles/index.js | 3 +++ addon/routes/roles.js | 3 +++ addon/routes/roles/index.js | 3 +++ addon/templates/roles.hbs | 3 +++ addon/templates/roles/index.hbs | 38 ++++++++++++++++++++++++++++++++ app/controllers/roles/index.js | 1 + app/routes/roles.js | 1 + app/routes/roles/index.js | 1 + app/templates/roles.js | 1 + app/templates/roles/index.js | 1 + 10 files changed, 55 insertions(+) create mode 100644 addon/controllers/roles/index.js create mode 100644 addon/routes/roles.js create mode 100644 addon/routes/roles/index.js create mode 100644 addon/templates/roles.hbs create mode 100644 addon/templates/roles/index.hbs create mode 100644 app/controllers/roles/index.js create mode 100644 app/routes/roles.js create mode 100644 app/routes/roles/index.js create mode 100644 app/templates/roles.js create mode 100644 app/templates/roles/index.js diff --git a/addon/controllers/roles/index.js b/addon/controllers/roles/index.js new file mode 100644 index 00000000..e92b8476 --- /dev/null +++ b/addon/controllers/roles/index.js @@ -0,0 +1,3 @@ +import PaginationController from "ember-emeis/controllers/pagination"; + +export default class RolesIndexController extends PaginationController {} diff --git a/addon/routes/roles.js b/addon/routes/roles.js new file mode 100644 index 00000000..7c0c277f --- /dev/null +++ b/addon/routes/roles.js @@ -0,0 +1,3 @@ +import Route from "@ember/routing/route"; + +export default class RolesRoute extends Route {} diff --git a/addon/routes/roles/index.js b/addon/routes/roles/index.js new file mode 100644 index 00000000..b0cd3333 --- /dev/null +++ b/addon/routes/roles/index.js @@ -0,0 +1,3 @@ +import Route from "@ember/routing/route"; + +export default class RolesIndexRoute extends Route {} diff --git a/addon/templates/roles.hbs b/addon/templates/roles.hbs new file mode 100644 index 00000000..d37b9094 --- /dev/null +++ b/addon/templates/roles.hbs @@ -0,0 +1,3 @@ + + +{{outlet}} diff --git a/addon/templates/roles/index.hbs b/addon/templates/roles/index.hbs new file mode 100644 index 00000000..652466d7 --- /dev/null +++ b/addon/templates/roles/index.hbs @@ -0,0 +1,38 @@ + + + + {{t "emeis.roles.headings.name"}} + + + {{t "emeis.roles.headings.slug"}} + + + {{t "emeis.roles.headings.description"}} + + + + + {{#with body.model as |role|}} + + + {{role.name}} + + + + + {{role.slug}} + + + + {{role.description}} + + {{/with}} + + + diff --git a/app/controllers/roles/index.js b/app/controllers/roles/index.js new file mode 100644 index 00000000..4816617c --- /dev/null +++ b/app/controllers/roles/index.js @@ -0,0 +1 @@ +export { default } from "ember-emeis/controllers/roles/index"; diff --git a/app/routes/roles.js b/app/routes/roles.js new file mode 100644 index 00000000..d3f18f25 --- /dev/null +++ b/app/routes/roles.js @@ -0,0 +1 @@ +export { default } from "ember-emeis/routes/roles"; diff --git a/app/routes/roles/index.js b/app/routes/roles/index.js new file mode 100644 index 00000000..2ddbaca1 --- /dev/null +++ b/app/routes/roles/index.js @@ -0,0 +1 @@ +export { default } from "ember-emeis/routes/roles/index"; diff --git a/app/templates/roles.js b/app/templates/roles.js new file mode 100644 index 00000000..e04fa6c9 --- /dev/null +++ b/app/templates/roles.js @@ -0,0 +1 @@ +export { default } from "ember-emeis/templates/roles"; diff --git a/app/templates/roles/index.js b/app/templates/roles/index.js new file mode 100644 index 00000000..416411a0 --- /dev/null +++ b/app/templates/roles/index.js @@ -0,0 +1 @@ +export { default } from "ember-emeis/templates/roles/index";