diff --git a/awx/ui/client/src/shared/form-generator.js b/awx/ui/client/src/shared/form-generator.js index a69175ad4d..b05c9bd4ec 100644 --- a/awx/ui/client/src/shared/form-generator.js +++ b/awx/ui/client/src/shared/form-generator.js @@ -423,7 +423,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat scope[form.name + '_form'][fld].$setPristine(); scope[form.name + '_form'][fld].$setValidity('apiError', true); } - if (f.chkPass && scope[form.name + '_form'][fld]) { + if (f.chkPass && scope[form.name + '_form'][fld] && $AnsibleConfig) { if ($AnsibleConfig.password_length) { scope[form.name + '_form'][fld].$setValidity('password_length', true); } @@ -786,6 +786,10 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat } if ((!field.readonly) || (field.readonly && options.mode === 'edit')) { + + if((field.excludeMode === undefined || field.excludeMode !== options.mode)) { + + html += "
\nPlease enter a URL that begins with ssh, http or https. The URL may not contain the '@' character.\n
\n"; } - if (field.chkPass) { + if (field.chkPass && $AnsibleConfig) { // password strength if ($AnsibleConfig.password_length) { html += "
" + (collection.title || collection.editTitle) +