diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/-actions.hbs b/ui/admin/app/components/host-catalogs/host-catalog/actions/index.hbs
similarity index 100%
rename from ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/-actions.hbs
rename to ui/admin/app/components/host-catalogs/host-catalog/actions/index.hbs
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/-header.hbs b/ui/admin/app/components/host-catalogs/host-catalog/header/index.hbs
similarity index 100%
rename from ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/-header.hbs
rename to ui/admin/app/components/host-catalogs/host-catalog/header/index.hbs
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/-actions.hbs b/ui/admin/app/components/host-catalogs/host-catalog/host-sets/host-set/actions/index.hbs
similarity index 100%
rename from ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/-actions.hbs
rename to ui/admin/app/components/host-catalogs/host-catalog/host-sets/host-set/actions/index.hbs
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts/-header.hbs b/ui/admin/app/components/host-catalogs/host-catalog/host-sets/host-set/add-hosts/header/index.hbs
similarity index 100%
rename from ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts/-header.hbs
rename to ui/admin/app/components/host-catalogs/host-catalog/host-sets/host-set/add-hosts/header/index.hbs
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host/-header.hbs b/ui/admin/app/components/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host/header/index.hbs
similarity index 100%
rename from ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host/-header.hbs
rename to ui/admin/app/components/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host/header/index.hbs
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/-header.hbs b/ui/admin/app/components/host-catalogs/host-catalog/host-sets/host-set/header/index.hbs
similarity index 100%
rename from ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/-header.hbs
rename to ui/admin/app/components/host-catalogs/host-catalog/host-sets/host-set/header/index.hbs
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/-navigation.hbs b/ui/admin/app/components/host-catalogs/host-catalog/host-sets/host-set/navigation/index.hbs
similarity index 100%
rename from ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/-navigation.hbs
rename to ui/admin/app/components/host-catalogs/host-catalog/host-sets/host-set/navigation/index.hbs
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/new/-header.hbs b/ui/admin/app/components/host-catalogs/host-catalog/host-sets/new/header/index.hbs
similarity index 100%
rename from ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/new/-header.hbs
rename to ui/admin/app/components/host-catalogs/host-catalog/host-sets/new/header/index.hbs
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/host/-actions.hbs b/ui/admin/app/components/host-catalogs/host-catalog/hosts/host/actions/index.hbs
similarity index 100%
rename from ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/host/-actions.hbs
rename to ui/admin/app/components/host-catalogs/host-catalog/hosts/host/actions/index.hbs
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/host/-header.hbs b/ui/admin/app/components/host-catalogs/host-catalog/hosts/host/header/index.hbs
similarity index 100%
rename from ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/host/-header.hbs
rename to ui/admin/app/components/host-catalogs/host-catalog/hosts/host/header/index.hbs
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/host/-navigation.hbs b/ui/admin/app/components/host-catalogs/host-catalog/hosts/host/navigation/index.hbs
similarity index 100%
rename from ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/host/-navigation.hbs
rename to ui/admin/app/components/host-catalogs/host-catalog/hosts/host/navigation/index.hbs
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/new/-header.hbs b/ui/admin/app/components/host-catalogs/host-catalog/hosts/new/header/index.hbs
similarity index 100%
rename from ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/new/-header.hbs
rename to ui/admin/app/components/host-catalogs/host-catalog/hosts/new/header/index.hbs
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/-navigation.hbs b/ui/admin/app/components/host-catalogs/host-catalog/navigation/index.hbs
similarity index 100%
rename from ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/-navigation.hbs
rename to ui/admin/app/components/host-catalogs/host-catalog/navigation/index.hbs
diff --git a/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog.js b/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog.js
index a4e18ff69..bfdc5ee8e 100644
--- a/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog.js
+++ b/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog.js
@@ -12,33 +12,4 @@ export default class ScopesScopeHostCatalogsHostCatalogRoute extends Route {
async model({ host_catalog_id }) {
return this.store.findRecord('host-catalog', host_catalog_id);
}
-
- /**
- * Renders the host-catalog specific templates for header, navigation,
- * and actions page sections.
- * @override
- * @param {object} controller
- * @param {object} model
- */
- renderTemplate(controller, model) {
- super.renderTemplate(...arguments);
-
- this.render('scopes/scope/host-catalogs/host-catalog/-header', {
- into: 'scopes/scope/host-catalogs/host-catalog',
- outlet: 'header',
- model: model,
- });
-
- this.render('scopes/scope/host-catalogs/host-catalog/-navigation', {
- into: 'scopes/scope/host-catalogs/host-catalog',
- outlet: 'navigation',
- model: model,
- });
-
- this.render('scopes/scope/host-catalogs/host-catalog/-actions', {
- into: 'scopes/scope/host-catalogs/host-catalog',
- outlet: 'actions',
- model: model,
- });
- }
}
diff --git a/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/host-sets.js b/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/host-sets.js
index 72431e28a..16cec5477 100644
--- a/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/host-sets.js
+++ b/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/host-sets.js
@@ -19,18 +19,24 @@ export default class ScopesScopeHostCatalogsHostCatalogHostSetsRoute extends Rou
* Loads all host-sets under the current host catalog and it's parent scope.
* @return {Promise{[HostSetModel]}}
*/
- model() {
+ async model() {
const hostCatalog = this.modelFor(
'scopes.scope.host-catalogs.host-catalog'
);
-
const { id: host_catalog_id } = hostCatalog;
+ let hostSets
+
if (
this.can.can('list model', hostCatalog, {
collection: 'host-sets',
})
) {
- return this.store.query('host-set', { host_catalog_id });
+ hostSets = await this.store.query('host-set', { host_catalog_id });
+ }
+
+ return {
+ hostCatalog,
+ hostSets
}
}
diff --git a/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/host-sets/host-set.js b/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/host-sets/host-set.js
index 5ffb8cf76..0544cf7c5 100644
--- a/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/host-sets/host-set.js
+++ b/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/host-sets/host-set.js
@@ -14,46 +14,9 @@ export default class ScopesScopeHostCatalogsHostCatalogHostSetsHostSetRoute exte
return this.store.findRecord('host-set', host_set_id, { reload: true });
}
- /**
- * Renders the host-set specific templates for header, navigation, and action page sections.
- * @override
- * @param {object} controller
- * @param {object} model
- */
- renderTemplate(controller, model) {
- super.renderTemplate(...arguments);
-
- this.render(
- 'scopes/scope/host-catalogs/host-catalog/host-sets/host-set/-header',
- {
- into: 'scopes/scope/host-catalogs/host-catalog',
- outlet: 'header',
- model: model,
- }
- );
-
- this.render(
- 'scopes/scope/host-catalogs/host-catalog/host-sets/host-set/-navigation',
- {
- into: 'scopes/scope/host-catalogs/host-catalog',
- outlet: 'navigation',
- model: model,
- }
- );
-
- this.render(
- 'scopes/scope/host-catalogs/host-catalog/host-sets/host-set/-actions',
- {
- into: 'scopes/scope/host-catalogs/host-catalog',
- outlet: 'actions',
- model: model,
- }
- );
- }
-
/**
* Adds a string item to array `property` on the passed `filter`.
-
+
* @param {hostSetModel} hostSet
* @param {string} property
* @param {string} value
diff --git a/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts.js b/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts.js
index 65d68d8d3..a87200e5e 100644
--- a/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts.js
+++ b/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts.js
@@ -37,33 +37,6 @@ export default class ScopesScopeHostCatalogsHostCatalogHostSetsHostSetAddHostsRo
});
}
- /**
- * Renders the add-hosts-specific header template.
- * Empties the actions and navigation outlets and renders a custom empty header.
- * @override
- */
- renderTemplate() {
- super.renderTemplate(...arguments);
-
- this.render(
- 'scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts/-header',
- {
- into: 'scopes/scope/host-catalogs/host-catalog',
- outlet: 'header',
- }
- );
-
- this.render('-empty', {
- into: 'scopes/scope/host-catalogs/host-catalog',
- outlet: 'navigation',
- });
-
- this.render('-empty', {
- into: 'scopes/scope/host-catalogs/host-catalog',
- outlet: 'actions',
- });
- }
-
// =actions
/**
diff --git a/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host.js b/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host.js
index 7a4d78492..528ba53d4 100644
--- a/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host.js
+++ b/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host.js
@@ -8,7 +8,6 @@ export default class ScopesScopeHostCatalogsHostCatalogHostSetsHostSetCreateAndA
// =services
@service intl;
-
@service router;
// =methods
@@ -28,33 +27,6 @@ export default class ScopesScopeHostCatalogsHostCatalogHostSetsHostSetCreateAndA
});
}
- /**
- * Renders the create host-specific header template.
- * Empties the actions and navigation outlets and renders a custom empty header.
- * @override
- */
- renderTemplate() {
- super.renderTemplate(...arguments);
-
- this.render(
- 'scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host/-header',
- {
- into: 'scopes/scope/host-catalogs/host-catalog',
- outlet: 'header',
- }
- );
-
- this.render('-empty', {
- into: 'scopes/scope/host-catalogs/host-catalog',
- outlet: 'navigation',
- });
-
- this.render('-empty', {
- into: 'scopes/scope/host-catalogs/host-catalog',
- outlet: 'actions',
- });
- }
-
// =actions
/**
diff --git a/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/host-sets/new.js b/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/host-sets/new.js
index 3c728dd1a..24680788b 100644
--- a/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/host-sets/new.js
+++ b/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/host-sets/new.js
@@ -21,37 +21,6 @@ export default class ScopesScopeHostCatalogsHostCatalogHostSetsNewRoute extends
});
}
- /**
- * Renders new host-set specific templates for header, navigation, and action page sections.
- * @override
- * @param {object} controller
- * @param {object} model
- */
- renderTemplate(controller, model) {
- super.renderTemplate(...arguments);
-
- this.render(
- 'scopes/scope/host-catalogs/host-catalog/host-sets/new/-header',
- {
- into: 'scopes/scope/host-catalogs/host-catalog',
- outlet: 'header',
- model: model,
- }
- );
-
- this.render('_empty', {
- into: 'scopes/scope/host-catalogs/host-catalog',
- outlet: 'navigation',
- model: model,
- });
-
- this.render('_empty', {
- into: 'scopes/scope/host-catalogs/host-catalog',
- outlet: 'actions',
- model: model,
- });
- }
-
/**
* Adds a string item to array `property` on the passed `filter`.
diff --git a/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/hosts.js b/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/hosts.js
index 7eb1168ff..d00d32627 100644
--- a/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/hosts.js
+++ b/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/hosts.js
@@ -19,17 +19,24 @@ export default class ScopesScopeHostCatalogsHostCatalogHostsRoute extends Route
* Loads all hosts under the current host catalog and it's parent scope.
* @return {Promise{[HostModel]}}
*/
- model() {
+ async model() {
const hostCatalog = this.modelFor(
'scopes.scope.host-catalogs.host-catalog'
);
const { id: host_catalog_id } = hostCatalog;
+ let hosts;
+
if (
this.can.can('list model', hostCatalog, {
collection: 'hosts',
})
) {
- return this.store.query('host', { host_catalog_id });
+ hosts = await this.store.query('host', { host_catalog_id });
+ }
+
+ return {
+ hostCatalog,
+ hosts,
}
}
diff --git a/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/hosts/host.js b/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/hosts/host.js
index dd87fdf1f..58d651c96 100644
--- a/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/hosts/host.js
+++ b/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/hosts/host.js
@@ -12,35 +12,4 @@ export default class ScopesScopeHostCatalogsHostCatalogHostsHostRoute extends Ro
async model({ host_id }) {
return this.store.findRecord('host', host_id, { reload: true });
}
-
- /**
- * Renders the host specific templates for header, navigation, and action page sections.
- * @override
- * @param {object} controller
- * @param {object} model
- */
- renderTemplate(controller, model) {
- super.renderTemplate(...arguments);
-
- this.render('scopes/scope/host-catalogs/host-catalog/hosts/host/-header', {
- into: 'scopes/scope/host-catalogs/host-catalog',
- outlet: 'header',
- model: model,
- });
-
- this.render(
- 'scopes/scope/host-catalogs/host-catalog/hosts/host/-navigation',
- {
- into: 'scopes/scope/host-catalogs/host-catalog',
- outlet: 'navigation',
- model: model,
- }
- );
-
- this.render('scopes/scope/host-catalogs/host-catalog/hosts/host/-actions', {
- into: 'scopes/scope/host-catalogs/host-catalog',
- outlet: 'actions',
- model: model,
- });
- }
}
diff --git a/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/hosts/new.js b/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/hosts/new.js
index b91127b4e..2eadc60f2 100644
--- a/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/hosts/new.js
+++ b/ui/admin/app/routes/scopes/scope/host-catalogs/host-catalog/hosts/new.js
@@ -16,33 +16,4 @@ export default class ScopesScopeHostCatalogsHostCatalogHostsNewRoute extends Rou
host_catalog_id,
});
}
-
- /**
- * Renders new host specific templates for header, navigation,
- * and action page sections.
- * @override
- * @param {object} controller
- * @param {object} model
- */
- renderTemplate(controller, model) {
- super.renderTemplate(...arguments);
-
- this.render('scopes/scope/host-catalogs/host-catalog/hosts/new/-header', {
- into: 'scopes/scope/host-catalogs/host-catalog',
- outlet: 'header',
- model: model,
- });
-
- this.render('_empty', {
- into: 'scopes/scope/host-catalogs/host-catalog',
- outlet: 'navigation',
- model: model,
- });
-
- this.render('_empty', {
- into: 'scopes/scope/host-catalogs/host-catalog',
- outlet: 'actions',
- model: model,
- });
- }
}
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog.hbs
index 33d5e4cdc..7d32ecb0d 100644
--- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog.hbs
+++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog.hbs
@@ -1,25 +1,3 @@
{{page-title @model.displayName}}
-
-
-
-
-
-
-
- {{outlet 'header'}}
-
-
-
- {{outlet 'actions'}}
-
-
-
- {{outlet 'navigation'}}
-
-
-
- {{outlet}}
-
-
-
\ No newline at end of file
+{{outlet}}
\ No newline at end of file
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts.hbs
index d76cab15f..fa3a0ff5f 100644
--- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts.hbs
+++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/add-hosts.hbs
@@ -1,8 +1,20 @@
{{page-title (t 'resources.host-set.actions.add-hosts')}}
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host.hbs
index ba57bf740..77a9b525b 100644
--- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host.hbs
+++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/create-and-add-host.hbs
@@ -1,7 +1,21 @@
{{page-title (t 'resources.host-set.actions.create-and-add-host')}}
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/index.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/index.hbs
index 97d59cd8d..1831b7374 100644
--- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/index.hbs
+++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/hosts/index.hbs
@@ -1,91 +1,113 @@
-{{#if @model.hosts}}
+
+
+
+
-
-
-
- {{t 'form.name.label'}}
- {{t 'form.type.label'}}
- {{t 'form.id.label'}}
- {{#if @model.isStatic}}
- {{t 'titles.actions'}}
- {{/if}}
-
-
-
- {{#each @model.hosts as |host|}}
-
-
- {{#if host.isStatic}}
-
- {{host.displayName}}
-
- {{else}}
- {{! Link to a different subroute for dynamic/plugin hosts }}
-
- {{host.displayName}}
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{#if @model.hosts}}
+
+
+
+ {{t 'form.name.label'}}
+ {{t 'form.type.label'}}
+ {{t 'form.id.label'}}
+ {{#if @model.isStatic}}
+ {{t 'titles.actions'}}
{{/if}}
- {{host.description}}
-
-
-
-
-
-
- {{host.id}}
-
-
-
- {{#if (can 'removeHosts hostSet' @model.hostSet)}}
-
-
+
+
+
+ {{#each @model.hosts as |host|}}
+
+
+ {{#if host.isStatic}}
+
+ {{host.displayName}}
+
+ {{else}}
+ {{! Link to a different subroute for dynamic/plugin hosts }}
+
+ {{host.displayName}}
+
+ {{/if}}
+ {{host.description}}
+
+
+
+
+
+
- {{t 'actions.remove'}}
-
-
- {{/if}}
-
-
- {{/each}}
-
-
+ {{host.id}}
+
+
+
+ {{#if (can 'removeHosts hostSet' @model.hostSet)}}
+
+
+ {{t 'actions.remove'}}
+
+
+ {{/if}}
+
+
+ {{/each}}
+
+
+ {{/if}}
-{{/if}}
-
-{{#unless @model.hosts}}
-
-
-
- {{t 'resources.host-set.host.messages.none.description'}}
-
- {{!--
-
-
- {{t "resources.host-set.actions.create-and-add-host"}}
-
- --}}
-
-
-{{/unless}}
\ No newline at end of file
+ {{#unless @model.hosts}}
+
+
+
+ {{t 'resources.host-set.host.messages.none.description'}}
+
+
+
+ {{/unless}}
+
+
\ No newline at end of file
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/index.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/index.hbs
index 724c55573..0de335783 100644
--- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/index.hbs
+++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/host-set/index.hbs
@@ -1,7 +1,29 @@
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/index.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/index.hbs
index a8f12fff4..160f03974 100644
--- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/index.hbs
+++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/index.hbs
@@ -1,83 +1,104 @@
-{{#if @model}}
+
+
+
+
-
-
-
- {{t 'form.name.label'}}
- {{t 'form.type.label'}}
- {{t 'form.id.label'}}
-
-
-
- {{#each @model as |hostSet|}}
-
-
- {{#if (can 'read model' hostSet)}}
-
- {{hostSet.displayName}}
-
- {{else}}
- {{hostSet.displayName}}
- {{/if}}
- {{hostSet.description}}
-
-
-
-
-
-
- {{hostSet.id}}
-
-
-
- {{/each}}
-
-
+
+
+
-{{else}}
+
+
+
-
-
-
+
+
+
- {{#if (can 'list model' this.hostCatalog collection='host-sets')}}
- {{! can list (at least): show default welcome message}}
- {{t 'resources.host-set.description'}}
+
+ {{#if @model.hostSets}}
+
+
+
+ {{t 'form.name.label'}}
+ {{t 'form.type.label'}}
+ {{t 'form.id.label'}}
+
+
- {{else if (can 'create model' this.hostCatalog collection='host-sets')}}
- {{! can create (only): show create-but-not-list welcome message}}
- {{t
- 'descriptions.create-but-not-list'
- resource=(t 'resources.host-set.title_plural')
- }}
- {{else}}
- {{! can neither list nor create }}
- {{t
- 'descriptions.neither-list-nor-create'
- resource=(t 'resources.host-set.title_plural')
- }}
- {{/if}}
-
+
+ {{#each @model.hostSets as |hostSet|}}
+
+
+ {{#if (can 'read model' hostSet)}}
+
+ {{hostSet.displayName}}
+
+ {{else}}
+ {{hostSet.displayName}}
+ {{/if}}
+ {{hostSet.description}}
+
+
+
+
+
+
+ {{hostSet.id}}
+
+
+
+ {{/each}}
+
+
- {{#if (can 'create model' this.hostCatalog collection='host-sets')}}
-
+
-
- {{t 'titles.new'}}
-
- {{/if}}
-
-
+
-{{/if}}
\ No newline at end of file
+ {{#if (can 'list model' this.hostCatalog collection='host-sets')}}
+ {{! can list (at least): show default welcome message}}
+ {{t 'resources.host-set.description'}}
+
+ {{else if (can
+ 'create model' this.hostCatalog collection='host-sets'
+ )}}
+ {{! can create (only): show create-but-not-list welcome message}}
+ {{t
+ 'descriptions.create-but-not-list'
+ resource=(t 'resources.host-set.title_plural')
+ }}
+ {{else}}
+ {{! can neither list nor create }}
+ {{t
+ 'descriptions.neither-list-nor-create'
+ resource=(t 'resources.host-set.title_plural')
+ }}
+ {{/if}}
+
+
+ {{#if (can 'create model' this.hostCatalog collection='host-sets')}}
+
+
+ {{t 'titles.new'}}
+
+ {{/if}}
+
+
+
+ {{/if}}
+
+
\ No newline at end of file
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/new.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/new.hbs
index 2aec7f029..7cd77f4f1 100644
--- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/new.hbs
+++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/host-sets/new.hbs
@@ -1,9 +1,21 @@
{{page-title (t 'titles.new')}}
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/host/index.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/host/index.hbs
index 9a09f8c90..278844e5e 100644
--- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/host/index.hbs
+++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/host/index.hbs
@@ -1,5 +1,26 @@
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/index.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/index.hbs
index 0371cefac..56743f473 100644
--- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/index.hbs
+++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/index.hbs
@@ -1,89 +1,105 @@
-{{#if @model}}
+
+
+
+
-
-
-
- {{t 'form.name.label'}}
- {{t 'form.type.label'}}
- {{t 'form.id.label'}}
- {{t 'form.address.label'}}
-
-
-
- {{#each @model as |host|}}
-
-
- {{#if (can 'read model' host)}}
-
+
+
+
- {{host.displayName}}
-
- {{else}}
- {{host.displayName}}
- {{/if}}
- {{host.description}}
-
-
-
-
-
-
- {{host.id}}
-
-
-
- {{host.address}}
-
-
- {{/each}}
-
-
+
+
+
-{{else}}
+
+
+
-
-
-
+
+ {{#if @model.hosts}}
+
+
+
+ {{t 'form.name.label'}}
+ {{t 'form.type.label'}}
+ {{t 'form.id.label'}}
+ {{t 'form.address.label'}}
+
+
- {{#if (can 'list model' this.hostCatalog collection='hosts')}}
- {{! can list (at least): show default welcome message}}
- {{t 'resources.host.description'}}
+
+ {{#each @model.hosts as |host|}}
+
+
+ {{#if (can 'read model' host)}}
+
+ {{host.displayName}}
+
+ {{else}}
+ {{host.displayName}}
+ {{/if}}
+ {{host.description}}
+
+
+
+
+
+
+ {{host.id}}
+
+
- {{else if (can 'create model' this.hostCatalog collection='hosts')}}
- {{! can create (only): show create-but-not-list welcome message}}
- {{t
- 'descriptions.create-but-not-list'
- resource=(t 'resources.host.title_plural')
- }}
- {{else}}
- {{! can neither list nor create }}
- {{t
- 'descriptions.neither-list-nor-create'
- resource=(t 'resources.host.title_plural')
- }}
- {{/if}}
-
+
+ {{host.address}}
+
+
+ {{/each}}
+
+
- {{#if (can 'create model' this.hostCatalog collection='hosts')}}
-
-
+
-
- {{t 'titles.new'}}
-
- {{/if}}
-
-
+
+ {{#if (can 'list model' this.hostCatalog collection='hosts')}}
+ {{! can list (at least): show default welcome message}}
+ {{t 'resources.host.description'}}
-{{/if}}
\ No newline at end of file
+ {{else if (can 'create model' this.hostCatalog collection='hosts')}}
+ {{! can create (only): show create-but-not-list welcome message}}
+ {{t
+ 'descriptions.create-but-not-list'
+ resource=(t 'resources.host.title_plural')
+ }}
+ {{else}}
+ {{! can neither list nor create }}
+ {{t
+ 'descriptions.neither-list-nor-create'
+ resource=(t 'resources.host.title_plural')
+ }}
+ {{/if}}
+
+
+ {{#if (can 'create model' this.hostCatalog collection='hosts')}}
+
+
+ {{t 'titles.new'}}
+
+ {{/if}}
+
+
+ {{/if}}
+
+
\ No newline at end of file
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/new.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/new.hbs
index fca1272d4..050e5c93c 100644
--- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/new.hbs
+++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/new.hbs
@@ -1,7 +1,19 @@
{{page-title (t 'titles.new')}}
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/index.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/index.hbs
index e3c238cad..de43f0101 100644
--- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/index.hbs
+++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/index.hbs
@@ -1,5 +1,25 @@
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file