diff --git a/awx/ui/client/src/inventories/groups/nested-hosts/nested-hosts-add.route.js b/awx/ui/client/src/inventories/groups/nested-hosts/nested-hosts-add.route.js index 3559192274..107f971aed 100644 --- a/awx/ui/client/src/inventories/groups/nested-hosts/nested-hosts-add.route.js +++ b/awx/ui/client/src/inventories/groups/nested-hosts/nested-hosts-add.route.js @@ -9,8 +9,8 @@ export default { }, views: { 'hostForm@inventories': { - templateProvider: function(GenerateForm, RelatedHostsFormDefinition) { - let form = RelatedHostsFormDefinition; + templateProvider: function(GenerateForm, RelatedHostsFormDefinition, NestedHostsFormDefinition, $stateParams) { + let form = ($stateParams.group_id) ? NestedHostsFormDefinition : RelatedHostsFormDefinition; return GenerateForm.buildHTML(form, { mode: 'add', related: false diff --git a/awx/ui/client/src/inventories/groups/nested-hosts/nested-hosts-edit.route.js b/awx/ui/client/src/inventories/groups/nested-hosts/nested-hosts-edit.route.js index 8bcd6ec985..26d79de5bd 100644 --- a/awx/ui/client/src/inventories/groups/nested-hosts/nested-hosts-edit.route.js +++ b/awx/ui/client/src/inventories/groups/nested-hosts/nested-hosts-edit.route.js @@ -8,10 +8,7 @@ export default { views: { 'hostForm@inventories': { templateProvider: function(GenerateForm, RelatedHostsFormDefinition, NestedHostsFormDefinition, $stateParams) { - let form = RelatedHostsFormDefinition; - if($stateParams.group_id){ - form = NestedHostsFormDefinition; - } + let form = ($stateParams.group_id) ? NestedHostsFormDefinition : RelatedHostsFormDefinition; return GenerateForm.buildHTML(form, { mode: 'edit', related: false diff --git a/awx/ui/client/src/inventories/groups/nested-hosts/nested-hosts.form.js b/awx/ui/client/src/inventories/groups/nested-hosts/nested-hosts.form.js index 50cc60cdb4..b3f2eed211 100644 --- a/awx/ui/client/src/inventories/groups/nested-hosts/nested-hosts.form.js +++ b/awx/ui/client/src/inventories/groups/nested-hosts/nested-hosts.form.js @@ -64,7 +64,7 @@ function(i18n) { ngDisabled: '!(host.summary_fields.user_capabilities.edit || canAdd)', type: 'text' }, - variables: { + host_variables: { label: i18n._('Variables'), type: 'textarea', rows: 6,