diff --git a/app/components/live/surveil.js b/app/components/live/surveil.js index 0978325..65d1919 100644 --- a/app/components/live/surveil.js +++ b/app/components/live/surveil.js @@ -358,7 +358,15 @@ angular.module('bansho.live', []) }).error(function () { throw new Error('acknowledge : POST Request failed'); }); - } + }; + + var downtime = function (host_name, service_description, attrs) { + var data = {}; + + angular.forEach(attrs, function (key, value) { + console.log(key + "; " + value); + }); + }; return { getHost: getHost, @@ -373,7 +381,7 @@ angular.module('bansho.live', []) getHostProblems: getHostProblems, getTableData: getTableData, getTotalHosts: getTotalHosts, - getTotalServices: getTotalServices - - } + getTotalServices: getTotalServices, + downtime: downtime + }; }]); diff --git a/app/components/table/actionbar/actionbar.html b/app/components/table/actionbar/actionbar.html index 2ca5eb9..bfc57b1 100644 --- a/app/components/table/actionbar/actionbar.html +++ b/app/components/table/actionbar/actionbar.html @@ -134,5 +134,8 @@ + + + diff --git a/app/components/table/actionbar/actionbar.js b/app/components/table/actionbar/actionbar.js index ad6171b..db758ce 100644 --- a/app/components/table/actionbar/actionbar.js +++ b/app/components/table/actionbar/actionbar.js @@ -66,6 +66,8 @@ angular.module('bansho.table.actionbar', ['bansho.table', $scope.activateFilter = function (item) { $scope.actionbarFilters.activeFilter = $scope.actionbarFilters.possibleFilters[item]; }; + + $scope.isDowntimeShown = true; }]) .filter('actionbarSelectFilter', function () { @@ -105,4 +107,18 @@ angular.module('bansho.table.actionbar', ['bansho.table', restrict: 'E', templateUrl: 'components/table/actionbar/actionbar.html' }; + }) + + .directive('banshoDowntimeForm', function () { + return { + restrict: 'E', + templateUrl: 'components/table/actionbar/downtime_form.html', + scope: { + isShown: '=', + selectedHosts: '=' + }, + controller: function ($scope) { + console.log($scope.isShown) + } + }; }); diff --git a/app/components/table/actionbar/downtime_form.html b/app/components/table/actionbar/downtime_form.html new file mode 100644 index 0000000..37fb3b2 --- /dev/null +++ b/app/components/table/actionbar/downtime_form.html @@ -0,0 +1,10 @@ +
+

Downtime form {{isShown}}

+
+
+ + +
+ +
+
\ No newline at end of file