mirror of
https://github.com/ansible/awx.git
synced 2026-03-02 17:28:51 -03:30
made checkboxes clickable with label
This commit is contained in:
@@ -70,11 +70,11 @@ angular.module('AWDirectives', ['RestServices', 'Utilities', 'AuthService', 'Job
|
|||||||
require: 'ngModel',
|
require: 'ngModel',
|
||||||
scope: { ngModel: '=ngModel' },
|
scope: { ngModel: '=ngModel' },
|
||||||
template: '<div class="survey_taker_input" ng-repeat="option in ngModel.options">' +
|
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)" />' +
|
'value="{{option.value}}" class="mc" ng-change="update(this.value)" />' +
|
||||||
'<span>'+
|
'<span>'+
|
||||||
'{{option.value}}'+
|
'{{option.value}}'+
|
||||||
'</span>'+
|
'</span></label>'+
|
||||||
'</div>',
|
'</div>',
|
||||||
link: function(scope, element, attrs, ctrl){
|
link: function(scope, element, attrs, ctrl){
|
||||||
scope.cbModel= {};
|
scope.cbModel= {};
|
||||||
|
|||||||
Reference in New Issue
Block a user