course details changes done
This commit is contained in:
parent
06e22a5969
commit
f194f67b6b
@ -362,4 +362,79 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
||||
|
||||
|
||||
|
||||
}]);
|
||||
}]);
|
||||
|
||||
/*modal controller
|
||||
* */
|
||||
app.controller('ModalDemoCtrl', ["$scope", "$modal", "$log", function ($scope, $modal, $log) {
|
||||
//Tooltip for print button
|
||||
$scope.dynamicTooltip = 'Click to View Bill Details';
|
||||
|
||||
|
||||
|
||||
// $scope.items = ['item1', 'item2', 'item3'];
|
||||
|
||||
$scope.FeesName="" ;
|
||||
$scope.open = function (values) {
|
||||
$scope.FeesName = values;
|
||||
|
||||
var modalInstance = $modal.open({
|
||||
templateUrl: 'myModalContent.html',
|
||||
controller: 'ModalInstanceCtrl',
|
||||
// size: size,
|
||||
resolve: {
|
||||
items: function () {
|
||||
return $scope.FeesName;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
modalInstance.result.then(function (selectedItem) {
|
||||
$scope.selected = selectedItem;
|
||||
}, function () {
|
||||
$log.info('Modal dismissed at: ' + new Date());
|
||||
});
|
||||
};
|
||||
}]);
|
||||
|
||||
// Please note that $modalInstance represents a modal window (instance) dependency.
|
||||
// It is not the same as the $modal service used above.
|
||||
|
||||
app.controller('ModalInstanceCtrl', ["$scope", "$modalInstance", "items", function ($scope, $modalInstance, items) {
|
||||
|
||||
$scope.items = items;
|
||||
$scope.selected = {
|
||||
item: $scope.items[0]
|
||||
};
|
||||
|
||||
$scope.ok = function () {
|
||||
$modalInstance.close($scope.selected.item);
|
||||
};
|
||||
|
||||
$scope.cancel = function () {
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
//show hide function for pdf design
|
||||
$scope.ShowHide = function (pdfValue) {
|
||||
$scope.showButton = true;
|
||||
$scope.BillNo = pdfValue.BillNO;
|
||||
|
||||
}
|
||||
|
||||
$scope.mouseLeave = function(){
|
||||
$scope.showButton = false;
|
||||
}
|
||||
|
||||
}]);
|
||||
app.directive('visible', function() {
|
||||
|
||||
return {
|
||||
restrict: 'A',
|
||||
|
||||
link: function(scope, element, attributes) {
|
||||
scope.$watch(attributes.visible, function(value){
|
||||
element.css('visibility', value ? 'visible' : 'hidden');
|
||||
});
|
||||
}
|
||||
};
|
||||
})
|
||||
Loading…
Reference in New Issue
Block a user