diff --git a/addons/core/translations/resources/en-us.yaml b/addons/core/translations/resources/en-us.yaml
index 29bd6c7a3..dacd49846 100644
--- a/addons/core/translations/resources/en-us.yaml
+++ b/addons/core/translations/resources/en-us.yaml
@@ -97,13 +97,6 @@ host-catalog:
dynamic:
label: Dynamic
help: Automate discovery of target hosts and services on Azure or AWS
- form:
- provider:
- label: Provider Details
- description: This is the provider for this host catalog. The format of the host set filters are specific to each provider.
- choose_a_provider:
- label: Choose a provider
- description: There are several built-in plugins for the most common providers. You can choose from on of the included plugins or use a custom plugin.
host-set:
title: Host Set
title_plural: Host Sets
@@ -156,10 +149,15 @@ host:
create: New Host
delete: Delete Host
types:
- static: Static
- unknown: Unknown
- aws: AWS
- azure: Azure
+ static:
+ label: Static
+ help: Provide a list of hosts and host sets with static addresses
+ unknown:
+ label: Unknown
+ aws:
+ label: AWS
+ azure:
+ label: Azure
session:
title: Session
title_plural: Sessions
diff --git a/ui/admin/app/components/form/host-set/aws/index.hbs b/ui/admin/app/components/form/host-set/aws/index.hbs
index f800e9d53..6e2529a60 100644
--- a/ui/admin/app/components/form/host-set/aws/index.hbs
+++ b/ui/admin/app/components/form/host-set/aws/index.hbs
@@ -54,10 +54,8 @@
/>
- <:title>{{t 'resources.host-catalog.form.provider.label'}}
- <:description>{{t
- 'resources.host-catalog.form.provider.description'
- }}
+ <:title>{{t 'form.provider.label'}}
+ <:description>{{t 'form.provider.description'}}
<:body>
- <:title>{{t 'resources.host-catalog.form.provider.label'}}
- <:description>{{t
- 'resources.host-catalog.form.provider.description'
- }}
+ <:title>{{t 'form.provider.label'}}
+ <:description>{{t 'form.provider.description'}}
<:body>
+
+
+
+
+ {{#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}}
+
+
+
+ <:title>{{t 'form.provider.label'}}
+ <:body>
+
+
+
+
+
+
+ {{#if (can 'save model' @model)}}
+
+ {{/if}}
+
\ No newline at end of file
diff --git a/ui/admin/app/components/form/host/azure/index.hbs b/ui/admin/app/components/form/host/azure/index.hbs
new file mode 100644
index 000000000..e509f0458
--- /dev/null
+++ b/ui/admin/app/components/form/host/azure/index.hbs
@@ -0,0 +1,83 @@
+
+
+
+
+
+ {{#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}}
+
+
+
+ <:title>{{t 'form.provider.label'}}
+ <:body>
+
+
+
+
+
+
+ {{#if (can 'save model' @model)}}
+
+ {{/if}}
+
\ No newline at end of file
diff --git a/ui/admin/app/components/form/host/index.hbs b/ui/admin/app/components/form/host/index.hbs
index 9b39cdb26..a3c879913 100644
--- a/ui/admin/app/components/form/host/index.hbs
+++ b/ui/admin/app/components/form/host/index.hbs
@@ -1,82 +1,18 @@
-
-
-
-
-
- {{#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}}
-
-
-
- {{#if @model.errors.name}}
-
- {{#each @model.errors.name as |error|}}
- {{error.message}}
- {{/each}}
-
- {{/if}}
-
- {{#if (can 'save model' @model)}}
-
- {{/if}}
-
\ No newline at end of file
+{{#if @model.compositeType}}
+ {{component
+ (concat 'form/host/' @model.compositeType)
+ model=@model
+ submit=@submit
+ cancel=@cancel
+ }}
+{{else}}
+ {{! create-and-add-host cancel route doesn't
+have a model and this else part is required to prevent
+erroring out here. This has been noted in the tech debt doc to further investigate }}
+ {{component
+ (concat 'form/host/' 'static')
+ model=@model
+ submit=@submit
+ cancel=@cancel
+ }}
+{{/if}}
\ No newline at end of file
diff --git a/ui/admin/app/components/form/host/static/index.hbs b/ui/admin/app/components/form/host/static/index.hbs
new file mode 100644
index 000000000..d86c04f1c
--- /dev/null
+++ b/ui/admin/app/components/form/host/static/index.hbs
@@ -0,0 +1,82 @@
+
+
+
+
+
+ {{#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}}
+
+
+
+ {{#if @model.errors.address}}
+
+ {{#each @model.errors.address as |error|}}
+ {{error.message}}
+ {{/each}}
+
+ {{/if}}
+
+ {{#if (can 'save model' @model)}}
+
+ {{/if}}
+
\ 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 e6bc38f72..089a05165 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
@@ -29,7 +29,9 @@
{{#if host.isStatic}}
- {{t (concat 'resources.host.types.' host.compositeType)}}
+ {{t
+ (concat 'resources.host.types.' host.compositeType '.label')
+ }}
{{else}}
- {{t (concat 'resources.host.types.' host.compositeType)}}
+ {{t
+ (concat 'resources.host.types.' host.compositeType '.label')
+ }}
{{/if}}
@@ -53,7 +57,7 @@
- {{host.attributes.address}}
+ {{host.address}}
{{/each}}