diff --git a/awx/ui/client/src/job-templates/survey-maker/shared/question-definition.form.js b/awx/ui/client/src/job-templates/survey-maker/shared/question-definition.form.js index 58d95bb3b4..50f79c71fa 100644 --- a/awx/ui/client/src/job-templates/survey-maker/shared/question-definition.form.js +++ b/awx/ui/client/src/job-templates/survey-maker/shared/question-definition.form.js @@ -51,7 +51,7 @@ export default '
'+ '
Please enter an answer variable name.
'+ '
Please remove the illegal character from the survey question variable name.
'+ - '
This question variable is already in use. Please enter a different variable name.
' + + '
This question variable is already in use. Please enter a different variable name.
' + '
'+ '
', addRequired: true, @@ -205,9 +205,9 @@ export default ''+ '
'+ ''+ - '
Please enter an answer from the choices listed.
' + - '
The answer is shorter than the minimium length. Please make the answer longer.
' + - '
The answer is longer than the maximum length. Please make the answer shorter.
' + + '
Please enter an answer from the choices listed.
' + + '
The answer is shorter than the minimium length. Please make the answer longer.
' + + '
The answer is longer than the maximum length. Please make the answer shorter.
' + '
'+ '
'+ '', @@ -222,7 +222,7 @@ export default ''+ '
'+ ''+ - '
Please enter an answer/answers from the choices listed.
' + + '
Please enter an answer/answers from the choices listed.
' + '
'+ '
'+ '', @@ -263,8 +263,8 @@ export default ''+ '
'+ ''+ - '
The answer is shorter than the minimium length. Please make the answer longer.
' + - '
The answer is longer than the maximum length. Please make the answer shorter.
' + + '
The answer is shorter than the minimium length. Please make the answer longer.
' + + '
The answer is longer than the maximum length. Please make the answer shorter.
' + '
'+ '
'+ '', @@ -280,12 +280,12 @@ export default '
'+ '
'+ ''+ - ''+ + ''+ ''+ - ''+ + ''+ '
'+ - '
The answer is shorter than the minimium length. Please make the answer longer.
' + - '
The answer is longer than the maximum length. Please make the answer shorter.
' + + '
The answer is shorter than the minimium length. Please make the answer longer.
' + + '
The answer is longer than the maximum length. Please make the answer shorter.
' + '
'+ '
'+ '', diff --git a/awx/ui/client/src/job-templates/survey-maker/survey-maker.block.less b/awx/ui/client/src/job-templates/survey-maker/survey-maker.block.less index c2c70afcc7..785d17f26d 100644 --- a/awx/ui/client/src/job-templates/survey-maker/survey-maker.block.less +++ b/awx/ui/client/src/job-templates/survey-maker/survey-maker.block.less @@ -211,3 +211,11 @@ .SurveyMaker-previewDescription { margin-bottom: 5px; } + +.SurveyMaker-questionPanel { + #survey_question_default_password { + button { + height: 30px; /* show/hide button should match our input height */ + } + } +} diff --git a/awx/ui/client/src/job-templates/survey-maker/surveys/init.factory.js b/awx/ui/client/src/job-templates/survey-maker/surveys/init.factory.js index dfd820637c..7f804565c7 100644 --- a/awx/ui/client/src/job-templates/survey-maker/surveys/init.factory.js +++ b/awx/ui/client/src/job-templates/survey-maker/surveys/init.factory.js @@ -204,16 +204,16 @@ export default scope.default_textarea = ""; scope.default_password = "" ; scope.choices = ""; - scope.text_min = ""; - scope.text_max = "" ; - scope.textarea_min = ""; - scope.textarea_max = "" ; - scope.password_min = "" ; - scope.password_max = "" ; - scope.int_min = ""; - scope.int_max = ""; - scope.float_min = ""; - scope.float_max = ""; + scope.text_min = 0; + scope.text_max = 1024 ; + scope.textarea_min = 0; + scope.textarea_max = 4096; + scope.password_min = 0; + scope.password_max = 32; + scope.int_min = 0; + scope.int_max = 100; + scope.float_min = 0.0; + scope.float_max = 100.0; } // Sets all of our scope variables used for adding/editing a question back to a clean state