'+
- '
'+
+ '
'+
'
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.
' +
'
'+
@@ -252,6 +273,23 @@ export default
column : 2,
ngShow: 'type.type === "textarea" '
},
+ default_password: {
+ realName: 'default_answer' ,
+ type: 'custom' ,
+ control: '
',
+ column: 2,
+ ngShow: 'type.type === "password" '
+ },
required: {
realName: 'required_answer',
label: 'Required',
diff --git a/awx/ui/static/js/helpers/Hosts.js b/awx/ui/static/js/helpers/Hosts.js
index df9e045bf7..cd6a85c46e 100644
--- a/awx/ui/static/js/helpers/Hosts.js
+++ b/awx/ui/static/js/helpers/Hosts.js
@@ -473,7 +473,7 @@ angular.module('HostsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', 'H
relatedSets = {},
buttons, url, form_scope;
- var form_scope =
+ form_scope =
generator.inject(HostForm, { mode: 'edit', id: 'host-modal-dialog', breadCrumbs: false, related: false, scope: scope });
generator.reset();
@@ -1307,4 +1307,3 @@ angular.module('HostsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', 'H
}
};
}]);
-
diff --git a/awx/ui/static/js/helpers/JobSubmission.js b/awx/ui/static/js/helpers/JobSubmission.js
index 365837a2cf..d352f6c4ce 100644
--- a/awx/ui/static/js/helpers/JobSubmission.js
+++ b/awx/ui/static/js/helpers/JobSubmission.js
@@ -556,7 +556,32 @@ angular.module('JobSubmissionHelper', [ 'RestServices', 'Utilities', 'Credential
'job_launch_form.'+question.variable+'.$error.maxlength\">Please enter an answer between {{'+minlength+'}} to {{'+maxlength+'}} characters long.
'+
'
';
}
+ if(question.type === 'password' ){
+ minlength = (!Empty(question.min)) ? Number(question.min) : "";
+ maxlength =(!Empty(question.max)) ? Number(question.max) : "" ;
+ html+='
'+
+ '
Please enter an answer.
'+
+ '
Please enter an answer between {{'+minlength+'}} to {{'+maxlength+'}} characters long.
'+
+ '
';
+ html+='
'+
+ '
Please enter an answer.
'+
+ '
Please enter an answer between {{'+minlength+'}} to {{'+maxlength+'}} characters long.
'+
+ '
';
+ html+= '
';
+ }
if(question.type === 'multiplechoice'){
choices = question.choices.split(/\n/);
element = (question.type==="multiselect") ? "checkbox" : 'radio';
diff --git a/awx/ui/static/js/helpers/Survey.js b/awx/ui/static/js/helpers/Survey.js
index 233eb94121..042062e76d 100644
--- a/awx/ui/static/js/helpers/Survey.js
+++ b/awx/ui/static/js/helpers/Survey.js
@@ -324,6 +324,17 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper',
html += '