mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
fixed the styling on the job launch modal
the input fields were not uniform throughout the modal window. i also started a fix for the multiselect problem i'm having with angular validation
This commit is contained in:
@@ -594,10 +594,37 @@ function($location, Wait, GetBasePath, LookUpInit, JobTemplateForm, CredentialLi
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(question.type === "multiselect"){
|
if(question.type === "multiselect"){
|
||||||
|
// question.options = question.choices.split(/\n/);
|
||||||
choices = question.choices.split(/\n/);
|
choices = question.choices.split(/\n/);
|
||||||
element = (question.type==="multiselect") ? "checkbox" : 'radio';
|
|
||||||
|
// element = (question.type==="multiselect") ? "checkbox" : 'radio';
|
||||||
question.default = (question.default) ? question.default : (question.default_multiselect) ? question.default_multiselect : "" ;
|
question.default = (question.default) ? question.default : (question.default_multiselect) ? question.default_multiselect : "" ;
|
||||||
// scope[question.variable].choices = choices;
|
// scope[question.variable].choices = choices;
|
||||||
|
// scope[question.variable] = {
|
||||||
|
// options: question.options,
|
||||||
|
// default: question.default,
|
||||||
|
// name: 'multi checkboxes',
|
||||||
|
// required: true,
|
||||||
|
// value: ''
|
||||||
|
// }
|
||||||
|
// function Ctrl($scope) {
|
||||||
|
// $scope.field = {
|
||||||
|
// name:'multi checkboxes',
|
||||||
|
// value:'',
|
||||||
|
// required:true,
|
||||||
|
// options:[
|
||||||
|
// {value:'option 1'},
|
||||||
|
// {value:'option 2'},
|
||||||
|
// {value:'option 3'}
|
||||||
|
// ]
|
||||||
|
// };
|
||||||
|
// }
|
||||||
|
|
||||||
|
// html+='<survey-checkboxes ng-model=" '+question.variable+' " ></survey-checkboxes>' +
|
||||||
|
// '<div ng-show="job_launch_form.$valid">valid</div>'+
|
||||||
|
// '<div ng-hide="job_launch_form.$valid">invalid</div>';
|
||||||
|
|
||||||
|
|
||||||
html+='<div class="survey_taker_input" > ';
|
html+='<div class="survey_taker_input" > ';
|
||||||
for( j = 0; j<choices.length; j++){
|
for( j = 0; j<choices.length; j++){
|
||||||
checked = (!Empty(question.default) && question.default.indexOf(choices[j])!==-1) ? "checked" : "";
|
checked = (!Empty(question.default) && question.default.indexOf(choices[j])!==-1) ? "checked" : "";
|
||||||
|
|||||||
@@ -77,13 +77,8 @@
|
|||||||
margin-bottom:10px
|
margin-bottom:10px
|
||||||
}
|
}
|
||||||
|
|
||||||
.survey_error{
|
|
||||||
margin-left: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.survey_taker_choices{
|
|
||||||
margin-left: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user