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

made checkboxes clickable with label

This commit is contained in:
John Mitchell 2015-02-04 16:22:04 -05:00
parent 1e521e43c2
commit fb9e231189

View File

@ -70,11 +70,11 @@ angular.module('AWDirectives', ['RestServices', 'Utilities', 'AuthService', 'Job
require: 'ngModel',
scope: { ngModel: '=ngModel' },
template: '<div class="survey_taker_input" ng-repeat="option in ngModel.options">' +
'<input type="checkbox" ng-model="cbModel[option.value]" ' +
'<label><input type="checkbox" ng-model="cbModel[option.value]" ' +
'value="{{option.value}}" class="mc" ng-change="update(this.value)" />' +
'<span>'+
'{{option.value}}'+
'</span>'+
'</span></label>'+
'</div>',
link: function(scope, element, attrs, ctrl){
scope.cbModel= {};