From 6e14691c60ba2258c126af5dfe882021826a5b4e Mon Sep 17 00:00:00 2001 From: seshukm Date: Thu, 6 Apr 2017 17:22:34 +0530 Subject: Integration of Client pages to Main GUI IssueId : CLIENT-189 Change-Id: I22b5706272b0f6f368ca95c6f8f0f2115dcf7f3a Signed-off-by: seshukm --- provincemgr/src/main/webapp/provincemgr/index.html | 35 +++++++++++----------- provincemgr/src/main/webapp/provincemgr/js/app.js | 15 +++++----- provincemgr/src/main/webapp/provincemgr/js/rest.js | 3 +- .../webapp/provincemgr/templates/management.html | 6 ++-- 4 files changed, 31 insertions(+), 28 deletions(-) (limited to 'provincemgr') diff --git a/provincemgr/src/main/webapp/provincemgr/index.html b/provincemgr/src/main/webapp/provincemgr/index.html index f53edcca..6f9b8996 100644 --- a/provincemgr/src/main/webapp/provincemgr/index.html +++ b/provincemgr/src/main/webapp/provincemgr/index.html @@ -23,23 +23,24 @@ Province Management - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + diff --git a/provincemgr/src/main/webapp/provincemgr/js/app.js b/provincemgr/src/main/webapp/provincemgr/js/app.js index b8979dd9..7a972175 100644 --- a/provincemgr/src/main/webapp/provincemgr/js/app.js +++ b/provincemgr/src/main/webapp/provincemgr/js/app.js @@ -6,7 +6,7 @@ you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -33,7 +33,7 @@ var app = angular.module("ProvinceManagementApp", ["ui.router", "ngTable"]) .controller("managementCtrl", function($scope, $log, provinceDataService, $state, $compile, NgTableParams){ - $scope.message = "Management"; + $scope.title = "Management"; $scope.init = function() { provinceDataService.getAllProvinceData() @@ -43,6 +43,7 @@ var app = angular.module("ProvinceManagementApp", ["ui.router", "ngTable"]) loadButtons(); $log.info(data.provinceData); }, function(reason){ + loadButtons(); $scope.message = "Error is :" + JSON.stringify(reason); }); @@ -284,20 +285,20 @@ var app = angular.module("ProvinceManagementApp", ["ui.router", "ngTable"]) var modelTemplate = ""; function loadTemplate() { - $.get('framework/template.html', function (template) { + $.get('/openoui/resmgr/templates/template.html', function (template) { modelTemplate += template; }); - $.get('framework/templateContainer.html', function (template) { + $.get('/openoui/resmgr/templates/templateContainer.html', function (template) { modelTemplate += template; }); - $.get('framework/templateWidget.html', function (template) { + $.get('/openoui/resmgr/templates/templateWidget.html', function (template) { //console.log("Template is : "+template); modelTemplate += template; }); - $.get('framework/templateNotification.html', function (template) { + $.get('/openoui/resmgr/templates/templateNotification.html', function (template) { modelTemplate += template; }); - $.get('framework/templateFunctional.html', function (template) { + $.get('/openoui/resmgr/templates/templateFunctional.html', function (template) { modelTemplate += template; }); } \ No newline at end of file diff --git a/provincemgr/src/main/webapp/provincemgr/js/rest.js b/provincemgr/src/main/webapp/provincemgr/js/rest.js index 6432ca16..b2c994cf 100644 --- a/provincemgr/src/main/webapp/provincemgr/js/rest.js +++ b/provincemgr/src/main/webapp/provincemgr/js/rest.js @@ -18,7 +18,8 @@ app.factory("provinceDataService", function($http,DataService, $log){ - var uri ;//'http://192.168.9.13:18008'; + /* var uri = 'http://192.168.9.13:18008'; */ + var uri ; return { getAllProvinceData : function() { /*return $http({ diff --git a/provincemgr/src/main/webapp/provincemgr/templates/management.html b/provincemgr/src/main/webapp/provincemgr/templates/management.html index 934eff09..ccbd45eb 100644 --- a/provincemgr/src/main/webapp/provincemgr/templates/management.html +++ b/provincemgr/src/main/webapp/provincemgr/templates/management.html @@ -17,7 +17,7 @@ -->
-

{{message}}

+

{{title}}



@@ -43,8 +43,8 @@ {{provinceData.desc}} - - + + -- cgit 1.2.3-korg