diff --git a/client/cat3/main.html b/client/cat3/main.html index 476a55985..d26af1ea6 100644 --- a/client/cat3/main.html +++ b/client/cat3/main.html @@ -97,6 +97,7 @@ + diff --git a/client/cat3/src/main.js b/client/cat3/src/main.js index 429978e2e..ed33c0d92 100644 --- a/client/cat3/src/main.js +++ b/client/cat3/src/main.js @@ -27,7 +27,8 @@ var angularApp = angular.module('catapp', ['ui.router','ngTouch','toastr', 'ui.grid.autoResize','ui.grid.exporter', 'ui.grid.resizeColumns', 'global.uiGridOptions', - 'global.messages' + 'global.messages', + 'ui.grid.selection' ]); angularApp.run(['$rootScope', 'auth', '$state', '$stateParams','$http','$window', diff --git a/client/cat3/src/partials/sections/dashboard/genericServices.js b/client/cat3/src/partials/sections/dashboard/genericServices.js index 6f8dd7a03..c23cdddbd 100644 --- a/client/cat3/src/partials/sections/dashboard/genericServices.js +++ b/client/cat3/src/partials/sections/dashboard/genericServices.js @@ -255,27 +255,25 @@ }); }; - /*genericServices.editRunlist = function(chefRunlist, chefAttribute) { + genericServices.scheduleTime=function (ids) { $modal.open({ - templateUrl: 'src/partials/sections/dashboard/workzone/orchestration/popups/orchestrationUpdateChefRunlist.html', - controller: 'orchestrationUpdateChefRunlistCtrl', + animate: true, + templateUrl: "src/partials/sections/dashboard/popups/view/schedule.html", + controller: "scheduleCtrl as sch", backdrop: 'static', keyboard: false, - resolve : { - cookbookRunlistAttr: function(){ - return { - chefrunlist: chefRunlist, - attributes: chefAttribute - }; + resolve: { + items: function() { + return ids; } } - }).result.then(function (selectedCookBooks) { - //$rootScope.editRunListAttributes = false; - // $rootScope.chefrunlist = selectedCookBooks.list; - // $rootScope.cookbookAttributes = selectedCookBooks.cbAttributes; - }, function () { - console.log('Dismiss time is ' + new Date()); - }); - };*/ + }) + }; + genericServices.instanceStart=function (ids) { + + }; + genericServices.instanceStop=function () { + + }; }]); })(angular); \ No newline at end of file diff --git a/client/cat3/src/partials/sections/dashboard/popups/controller/scheduleCtrl.js b/client/cat3/src/partials/sections/dashboard/popups/controller/scheduleCtrl.js new file mode 100644 index 000000000..ca3657f70 --- /dev/null +++ b/client/cat3/src/partials/sections/dashboard/popups/controller/scheduleCtrl.js @@ -0,0 +1,19 @@ +(function(){ + "use strict"; + angular.module('dashboard') + .controller('scheduleCtrl', ['$scope', '$modalInstance', 'items','$filter',function($scope, $modalInstance, items,$filter) { + var sch=this; + sch.schedule={ + repeat:'Daily', + repeatTimes:'1', + startsOn:new Date(), + ends:'Never' + } + sch.cancel = function() { + $modalInstance.dismiss('cancel'); + }; + sch.ok=function(){ + + }; + }]); +})(); diff --git a/client/cat3/src/partials/sections/dashboard/popups/view/schedule.html b/client/cat3/src/partials/sections/dashboard/popups/view/schedule.html new file mode 100644 index 000000000..3bf5c0089 --- /dev/null +++ b/client/cat3/src/partials/sections/dashboard/popups/view/schedule.html @@ -0,0 +1,61 @@ +