From 32c75c8d041a66ff8b516e0f2cec88925bdafbb0 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 26 Dec 2017 15:16:01 +0530 Subject: [PATCH] course details changes done --- .../assets/js/controllers/studentViewCtrl.js | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/Apollo/assets/js/controllers/studentViewCtrl.js b/Apollo/assets/js/controllers/studentViewCtrl.js index ef9b3964..19b0cdf8 100644 --- a/Apollo/assets/js/controllers/studentViewCtrl.js +++ b/Apollo/assets/js/controllers/studentViewCtrl.js @@ -41,3 +41,58 @@ app.controller('studentViewCtrl', ["$scope","$rootScope", "toaster", "$filter", }]); +/*modal controller +* */ +app.controller('FeesModalDemoCtrl', ["$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","WordsService", function ($scope, $modalInstance, items,WordsService) { + + $scope.items = items; + $scope.selected = { + item: $scope.items[0] + }; + + $scope.ok = function () { + $modalInstance.close($scope.selected.item); + }; + + $scope.cancel = function () { + $modalInstance.dismiss('cancel'); + }; + + +}]); +