diff --git a/ui/core/app/components/form/host-catalog/index.hbs b/ui/core/app/components/form/host-catalog/index.hbs
new file mode 100644
index 000000000..9db695baa
--- /dev/null
+++ b/ui/core/app/components/form/host-catalog/index.hbs
@@ -0,0 +1,49 @@
+
+
+
+ {{#if @model.errors.name}}
+
+ {{#each @model.errors.name as |error|}}
+ {{error.message}}
+ {{/each}}
+
+ {{/if}}
+
+
+
+ {{#if @model.errors.description}}
+
+ {{#each @model.errors.description as |error|}}
+ {{error.message}}
+ {{/each}}
+
+ {{/if}}
+
+
+
+
+
diff --git a/ui/core/app/router.js b/ui/core/app/router.js
index e23cf038a..1cd721ad3 100644
--- a/ui/core/app/router.js
+++ b/ui/core/app/router.js
@@ -10,10 +10,13 @@ Router.map(function () {
this.route('orgs', function () {
this.route('org', { path: ':org_id' }, function () {
this.route('projects', function () {
- this.route('project', { path: ':project_id' }, function() {});
+ this.route('project', { path: ':project_id' }, function() {
+ this.route('host-catalogs', function() {
+ this.route('host-catalog', { path: ':host_catalog_id' }, function() {});
+ });
+ });
this.route('new');
});
});
});
- this.route('projects');
});
diff --git a/ui/core/app/routes/orgs/org/projects/project/host-catalogs.js b/ui/core/app/routes/orgs/org/projects/project/host-catalogs.js
new file mode 100644
index 000000000..eacc28056
--- /dev/null
+++ b/ui/core/app/routes/orgs/org/projects/project/host-catalogs.js
@@ -0,0 +1,14 @@
+import Route from '@ember/routing/route';
+
+export default class OrgsOrgProjectsProjectHostCatalogsRoute extends Route {
+
+ // =methods
+
+ /**
+ * Returns host catalogs for the current scope.
+ * @return {Promise[HostCatalogModel]}
+ */
+ model() {
+ return this.store.findAll('host-catalog');
+ }
+}
diff --git a/ui/core/app/routes/orgs/org/projects/project/host-catalogs/host-catalog.js b/ui/core/app/routes/orgs/org/projects/project/host-catalogs/host-catalog.js
new file mode 100644
index 000000000..c61d0601f
--- /dev/null
+++ b/ui/core/app/routes/orgs/org/projects/project/host-catalogs/host-catalog.js
@@ -0,0 +1,16 @@
+import Route from '@ember/routing/route';
+
+export default class OrgsOrgProjectsProjectHostCatalogsHostCatalogRoute extends Route {
+
+ // =methods
+
+ /**
+ * Returns a host catalog by id.
+ * @param {object} params
+ * @return {Promise{HostCatalogModel}}
+ */
+ model({ host_catalog_id: id }) {
+ return this.store.findRecord('host-catalog', id);
+ }
+
+}
diff --git a/ui/core/app/routes/orgs/org/projects/project/host-catalogs/host-catalog/index.js b/ui/core/app/routes/orgs/org/projects/project/host-catalogs/host-catalog/index.js
new file mode 100644
index 000000000..ffba38db4
--- /dev/null
+++ b/ui/core/app/routes/orgs/org/projects/project/host-catalogs/host-catalog/index.js
@@ -0,0 +1,4 @@
+import Route from '@ember/routing/route';
+
+export default class OrgsOrgProjectsProjectHostCatalogsHostCatalogIndexRoute extends Route {
+}
diff --git a/ui/core/app/routes/orgs/org/projects/project/host-catalogs/index.js b/ui/core/app/routes/orgs/org/projects/project/host-catalogs/index.js
new file mode 100644
index 000000000..a29543a30
--- /dev/null
+++ b/ui/core/app/routes/orgs/org/projects/project/host-catalogs/index.js
@@ -0,0 +1,4 @@
+import Route from '@ember/routing/route';
+
+export default class OrgsOrgProjectsProjectHostCatalogsIndexRoute extends Route {
+}
diff --git a/ui/core/app/templates/orgs/org/projects/project/host-catalogs.hbs b/ui/core/app/templates/orgs/org/projects/project/host-catalogs.hbs
new file mode 100644
index 000000000..6ad0035fb
--- /dev/null
+++ b/ui/core/app/templates/orgs/org/projects/project/host-catalogs.hbs
@@ -0,0 +1,3 @@
+{{title (t "resources.host-catalogs")}}
+
+{{outlet}}
diff --git a/ui/core/app/templates/orgs/org/projects/project/host-catalogs/host-catalog.hbs b/ui/core/app/templates/orgs/org/projects/project/host-catalogs/host-catalog.hbs
new file mode 100644
index 000000000..e2147cab0
--- /dev/null
+++ b/ui/core/app/templates/orgs/org/projects/project/host-catalogs/host-catalog.hbs
@@ -0,0 +1 @@
+{{outlet}}
\ No newline at end of file
diff --git a/ui/core/app/templates/orgs/org/projects/project/host-catalogs/host-catalog/index.hbs b/ui/core/app/templates/orgs/org/projects/project/host-catalogs/host-catalog/index.hbs
new file mode 100644
index 000000000..de04351ae
--- /dev/null
+++ b/ui/core/app/templates/orgs/org/projects/project/host-catalogs/host-catalog/index.hbs
@@ -0,0 +1,18 @@
+
+
+
{{t "resources.host-catalog"}}
+
+
+
+
+ {{t 'actions.delete'}}
+
+
diff --git a/ui/core/app/templates/orgs/org/projects/project/host-catalogs/index.hbs b/ui/core/app/templates/orgs/org/projects/project/host-catalogs/index.hbs
new file mode 100644
index 000000000..c75beadae
--- /dev/null
+++ b/ui/core/app/templates/orgs/org/projects/project/host-catalogs/index.hbs
@@ -0,0 +1,18 @@
+
+
+
{{t "resources.host-catalogs"}}
+
+
+ {{#each @model as |hostCatalog|}}
+ -
+
+ {{hostCatalog.name}}
+
+
+ {{/each}}
+
+
+
diff --git a/ui/core/tests/integration/components/form/host-catalog-test.js b/ui/core/tests/integration/components/form/host-catalog-test.js
new file mode 100644
index 000000000..b48cd5859
--- /dev/null
+++ b/ui/core/tests/integration/components/form/host-catalog-test.js
@@ -0,0 +1,13 @@
+import { module, test } from 'qunit';
+import { setupRenderingTest } from 'ember-qunit';
+//import { render } from '@ember/test-helpers';
+//import { hbs } from 'ember-cli-htmlbars';
+
+module('Integration | Component | form/host-catalog', function(hooks) {
+ setupRenderingTest(hooks);
+
+ test('it renders', async function(assert) {
+ assert.expect(0);
+ // TODO
+ });
+});
diff --git a/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs-test.js b/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs-test.js
new file mode 100644
index 000000000..f7c144429
--- /dev/null
+++ b/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs-test.js
@@ -0,0 +1,11 @@
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+module('Unit | Route | orgs/org/projects/project/host-catalogs', function(hooks) {
+ setupTest(hooks);
+
+ test('it exists', function(assert) {
+ let route = this.owner.lookup('route:orgs/org/projects/project/host-catalogs');
+ assert.ok(route);
+ });
+});
diff --git a/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs/host-catalog-test.js b/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs/host-catalog-test.js
new file mode 100644
index 000000000..6313bc8f0
--- /dev/null
+++ b/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs/host-catalog-test.js
@@ -0,0 +1,11 @@
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+module('Unit | Route | orgs/org/projects/project/host-catalogs/host-catalog', function(hooks) {
+ setupTest(hooks);
+
+ test('it exists', function(assert) {
+ let route = this.owner.lookup('route:orgs/org/projects/project/host-catalogs/host-catalog');
+ assert.ok(route);
+ });
+});
diff --git a/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs/host-catalog/index-test.js b/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs/host-catalog/index-test.js
new file mode 100644
index 000000000..a19bd70e9
--- /dev/null
+++ b/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs/host-catalog/index-test.js
@@ -0,0 +1,11 @@
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+module('Unit | Route | orgs/org/projects/project/host-catalogs/host-catalog/index', function(hooks) {
+ setupTest(hooks);
+
+ test('it exists', function(assert) {
+ let route = this.owner.lookup('route:orgs/org/projects/project/host-catalogs/host-catalog/index');
+ assert.ok(route);
+ });
+});
diff --git a/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs/index-test.js b/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs/index-test.js
new file mode 100644
index 000000000..d8a8d036e
--- /dev/null
+++ b/ui/core/tests/unit/routes/orgs/org/projects/project/host-catalogs/index-test.js
@@ -0,0 +1,11 @@
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+module('Unit | Route | orgs/org/projects/project/host-catalogs/index', function(hooks) {
+ setupTest(hooks);
+
+ test('it exists', function(assert) {
+ let route = this.owner.lookup('route:orgs/org/projects/project/host-catalogs/index');
+ assert.ok(route);
+ });
+});
diff --git a/ui/core/translations/en-us.yaml b/ui/core/translations/en-us.yaml
index 6e1074b4a..3f5623295 100644
--- a/ui/core/translations/en-us.yaml
+++ b/ui/core/translations/en-us.yaml
@@ -7,6 +7,8 @@ resources:
projects: Projects
project:
settings: Project Settings
+ host-catalog: Host Catalog
+ host-catalogs: Host Catalogs
titles:
new: New
states: