diff --git a/awx/ui/client/features/applications/add-edit-applications.view.html b/awx/ui/client/features/applications/add-edit-applications.view.html index 873f75ded0..8593e537dc 100644 --- a/awx/ui/client/features/applications/add-edit-applications.view.html +++ b/awx/ui/client/features/applications/add-edit-applications.view.html @@ -8,14 +8,14 @@ - - - - + + + + - - - + + + diff --git a/awx/ui/client/features/credentials/add-credentials.controller.js b/awx/ui/client/features/credentials/add-credentials.controller.js index 6f99792a89..27b3eaee4a 100644 --- a/awx/ui/client/features/credentials/add-credentials.controller.js +++ b/awx/ui/client/features/credentials/add-credentials.controller.js @@ -16,6 +16,8 @@ function AddCredentialsController (models, $state, $scope, strings, componentsSt omit: ['user', 'team', 'inputs'] }); + vm.form._formName = 'credential'; + vm.form.disabled = !credential.isCreatable(); vm.form.organization._resource = 'organization'; diff --git a/awx/ui/client/features/credentials/add-edit-credentials.view.html b/awx/ui/client/features/credentials/add-edit-credentials.view.html index 43e56259aa..dcc9d47e8b 100644 --- a/awx/ui/client/features/credentials/add-edit-credentials.view.html +++ b/awx/ui/client/features/credentials/add-edit-credentials.view.html @@ -9,16 +9,16 @@ - - - - + + + + - + - + {{:: vm.strings.get('inputs.GROUP_TITLE') }} diff --git a/awx/ui/client/lib/components/input/group.directive.js b/awx/ui/client/lib/components/input/group.directive.js index 7e6f1f2426..3820d4ab8b 100644 --- a/awx/ui/client/lib/components/input/group.directive.js +++ b/awx/ui/client/lib/components/input/group.directive.js @@ -16,6 +16,7 @@ function AtInputGroupController ($scope, $compile) { let state; let source; let element; + let formId; vm.init = (_scope_, _form_, _element_) => { form = _form_; @@ -23,6 +24,7 @@ function AtInputGroupController ($scope, $compile) { element = _element_; state = scope.state || {}; source = state._source; + ({ formId } = scope); $scope.$watch('state._source._value', vm.update); }; @@ -145,7 +147,7 @@ function AtInputGroupController ($scope, $compile) { const tabindex = Number(scope.tab) + index; const col = input._expand ? 12 : scope.col; const component = angular.element(`<${input._component} col="${col}" tab="${tabindex}" - state="${state._reference}._group[${index}]"> + state="${state._reference}._group[${index}]" id="${formId}_${input.id}_group"> `); $compile(component)(scope.$parent); @@ -183,7 +185,8 @@ function atInputGroup () { scope: { state: '=', col: '@', - tab: '@' + tab: '@', + formId: '@' } }; } diff --git a/awx/ui/client/src/shared/form-generator.js b/awx/ui/client/src/shared/form-generator.js index 734aafee4e..b18e9a5397 100644 --- a/awx/ui/client/src/shared/form-generator.js +++ b/awx/ui/client/src/shared/form-generator.js @@ -740,7 +740,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat if((field.excludeMode === undefined || field.excludeMode !== options.mode) && field.type !== 'alertblock' && field.type !== 'workflow-chart') { - html += "