1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

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:
Jared Tabor 2014-10-17 17:04:03 -04:00
parent ece2acc956
commit 473cc1ffa4
2 changed files with 30 additions and 8 deletions

View File

@ -594,10 +594,37 @@ function($location, Wait, GetBasePath, LookUpInit, JobTemplateForm, CredentialLi
}
if(question.type === "multiselect"){
// question.options = 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 : "" ;
// 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" > ';
for( j = 0; j<choices.length; j++){
checked = (!Empty(question.default) && question.default.indexOf(choices[j])!==-1) ? "checked" : "";

View File

@ -77,13 +77,8 @@
margin-bottom:10px
}
.survey_error{
margin-left: 15px;
}
.survey_taker_choices{
margin-left: 15px;
}