diff --git a/awx/ui/static/js/controllers/Credentials.js b/awx/ui/static/js/controllers/Credentials.js index b0fc8471e5..6fb304cbd6 100644 --- a/awx/ui/static/js/controllers/Credentials.js +++ b/awx/ui/static/js/controllers/Credentials.js @@ -249,20 +249,20 @@ export function CredentialsAdd($scope, $rootScope, $compile, $location, $log, $r if ($scope[fld + '_ask']) { $scope[fld] = 'ASK'; $("#" + form.name + "_" + fld + "_input").attr("type", "text"); - $("#" + form.name + "_" + fld + "_show_input_button").html(""); + $("#" + form.name + "_" + fld + "_show_input_button").html("Hide"); if (associated !== "undefined") { $("#" + form.name + "_" + fld + "_input").attr("type", "password"); - $("#" + form.name + "_" + fld + "_show_input_button").html("ABC"); + $("#" + form.name + "_" + fld + "_show_input_button").html("Show"); $scope[associated] = ''; $scope[form.name + '_form'][associated].$setValidity('awpassmatch', true); } } else { $scope[fld] = ''; $("#" + form.name + "_" + fld + "_input").attr("type", "password"); - $("#" + form.name + "_" + fld + "_show_input_button").html("ABC"); + $("#" + form.name + "_" + fld + "_show_input_button").html("Show"); if (associated !== "undefined") { $("#" + form.name + "_" + fld + "_input").attr("type", "text"); - $("#" + form.name + "_" + fld + "_show_input_button").html(""); + $("#" + form.name + "_" + fld + "_show_input_button").html("Hide"); $scope[associated] = ''; $scope[form.name + '_form'][associated].$setValidity('awpassmatch', true); } @@ -308,7 +308,7 @@ export function CredentialsEdit($scope, $rootScope, $compile, $location, $log, $ if (form.fields[fld].type === 'sensitive' && $scope[fld] === 'ASK') { // turn on 'ask' checkbox for password fields with value of 'ASK' $("#" + form.name + "_" + fld + "_input").attr("type", "text"); - $("#" + form.name + "_" + fld + "_show_input_button").html(""); + $("#" + form.name + "_" + fld + "_show_input_button").html("Hide"); $("#" + fld + "-clear-btn").attr("disabled", "disabled"); $scope[fld + '_ask'] = true; } else { @@ -545,7 +545,7 @@ export function CredentialsEdit($scope, $rootScope, $compile, $location, $log, $ if ($scope[fld + '_ask']) { $scope[fld] = 'ASK'; $("#" + form.name + "_" + fld + "_input").attr("type", "text"); - $("#" + form.name + "_" + fld + "_show_input_button").html(""); + $("#" + form.name + "_" + fld + "_show_input_button").html("Hide"); if (associated !== "undefined") { $("#" + form.name + "_" + fld + "_input").attr("type", "password"); $("#" + form.name + "_" + fld + "_show_input_button").html("ABC"); @@ -558,7 +558,7 @@ export function CredentialsEdit($scope, $rootScope, $compile, $location, $log, $ $("#" + form.name + "_" + fld + "_show_input_button").html("ABC"); if (associated !== "undefined") { $("#" + form.name + "_" + fld + "_input").attr("type", "text"); - $("#" + form.name + "_" + fld + "_show_input_button").html(""); + $("#" + form.name + "_" + fld + "_show_input_button").html("Hide"); $scope[associated] = ''; $scope[form.name + '_form'][associated].$setValidity('awpassmatch', true); } diff --git a/awx/ui/static/js/forms/SurveyQuestion.js b/awx/ui/static/js/forms/SurveyQuestion.js index 2be0c668a2..53b76690de 100644 --- a/awx/ui/static/js/forms/SurveyQuestion.js +++ b/awx/ui/static/js/forms/SurveyQuestion.js @@ -266,7 +266,7 @@ export default '
'+ '
'+ ''+ - ''+ + ''+ ''+ ''+ '
'+ diff --git a/awx/ui/static/js/helpers/JobSubmission.js b/awx/ui/static/js/helpers/JobSubmission.js index c45573cb9e..2777f018f1 100644 --- a/awx/ui/static/js/helpers/JobSubmission.js +++ b/awx/ui/static/js/helpers/JobSubmission.js @@ -522,11 +522,11 @@ function($compile, Rest, GetBasePath, TextareaResize,CreateDialog, GenerateForm, var buttonId = id + "_show_input_button", inputId = id, buttonInnerHTML = $(buttonId).html(); - if (buttonInnerHTML.indexOf("ABC") > -1) { - $(buttonId).html(""); + if (buttonInnerHTML.indexOf("Show") > -1) { + $(buttonId).html("Hide"); $(inputId).attr("type", "text"); } else { - $(buttonId).html("ABC"); + $(buttonId).html("Show"); $(inputId).attr("type", "password"); } }; @@ -589,7 +589,7 @@ function($compile, Rest, GetBasePath, TextareaResize,CreateDialog, GenerateForm, maxlength =(!Empty(question.max)) ? Number(question.max) : "" ; html+= '
'+ ''+ - ''+ + ''+ ''+ ''+ ''+ - ''+ + ''+ ''+ ''+ '
'+ @@ -1039,11 +1039,11 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper', var buttonId = id + "_show_input_button", inputId = id, buttonInnerHTML = $(buttonId).html(); - if (buttonInnerHTML.indexOf("ABC") > -1) { - $(buttonId).html(""); + if (buttonInnerHTML.indexOf("Show") > -1) { + $(buttonId).html("Hide"); $(inputId).attr("type", "text"); } else { - $(buttonId).html("ABC"); + $(buttonId).html("Show"); $(inputId).attr("type", "password"); } }; diff --git a/awx/ui/static/js/shared/form-generator.js b/awx/ui/static/js/shared/form-generator.js index 49740c3002..f732f4f4f3 100644 --- a/awx/ui/static/js/shared/form-generator.js +++ b/awx/ui/static/js/shared/form-generator.js @@ -870,7 +870,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat //fields with sensitive data that needs to be obfuscated from view if (field.type === 'sensitive') { - field.showInputInnerHTML = "ABC"; + field.showInputInnerHTML = "Show"; field.inputType = "password"; html += "\t" + label(); @@ -879,11 +879,11 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat var buttonId = id + "_show_input_button", inputId = id + "_input", buttonInnerHTML = $(buttonId).html(); - if (buttonInnerHTML.indexOf("ABC") > -1) { - $(buttonId).html(""); + if (buttonInnerHTML.indexOf("Show") > -1) { + $(buttonId).html("Hide"); $(inputId).attr("type", "text"); } else { - $(buttonId).html("ABC"); + $(buttonId).html("Show"); $(inputId).attr("type", "password"); } }; @@ -892,7 +892,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat html += "'>\n"; // TODO: make it so that the button won't show up if the mode is edit, hasShowInputButton !== true, and there are no contents in the field. html += "\n"; - html += "