From 978dbcf0a196acbafad72fe1e2478ec0e384f02f Mon Sep 17 00:00:00 2001 From: "Christopher Lott (cl778h)" Date: Wed, 23 Aug 2017 18:27:19 -0400 Subject: Deliver centralized role management feature Repair multiple defects also. Revise deployment to use docker-compose. Remove all zip archives. Issue: PORTAL-21, PORTAL-25, PORTAL-28, PORTAL-52, PORTAL-69, PORTAL-74, PORTAL-76, PORTAL-80, PORTAL-82 Change-Id: Ie72fec7d35ba78beb162bba6ed27b2caee340c61 Signed-off-by: Christopher Lott (cl778h) --- .../account-add-details/account-add-details.html | 81 +- .../account-add-details/account-add-details.js | 27 +- .../account-add-details/account-add-details.less | 13 +- .../account-onboarding.controller.js | 28 +- .../add-admin-dialogs/new-admin.controller.js | 15 +- .../admins/add-admin-dialogs/new-admin.modal.html | 131 ++- .../admins/add-admin-dialogs/new-admin.modal.less | 51 +- .../client/app/views/admins/admins.controller.js | 48 +- .../client/app/views/admins/admins.tpl.html | 4 +- .../application-details.modal.less | 13 +- .../add-catalog-dialogs/new-catalog.modal.less | 132 +++ .../client/app/views/catalog/catalog.less | 23 +- .../client/app/views/catalog/catalog.tpl.html | 66 +- .../admin-confirmation-box.tpl.html | 27 +- .../confirmation-box.controller.js | 22 +- .../confirmation-box/confirmation-box.tpl.html | 26 +- .../dragdrop-confirmation-box.tpl.html | 27 +- .../confirmation-box/information-box.tpl.html | 22 +- .../confirmation-box/reload-page-confirm.html | 36 + .../views/dashboard/dashboard-widget-manage.html | 78 +- .../dashboard-widget-parameter-manage.html | 28 +- .../dashboard-widget-parameters.controller.js | 8 +- .../dashboard/dashboard-widget.controller.less | 57 +- .../app/views/dashboard/dashboard.controller.js | 43 +- .../client/app/views/dashboard/dashboard.less | 43 +- .../client/app/views/dashboard/dashboard.tpl.html | 33 +- .../menu-details.controller.js | 178 ++-- .../functionalMenu-dialog/menu-details.modal.html | 83 +- .../functionalMenu-dialog/modal-details.modal.less | 28 +- .../app/views/functionalMenu/functionalMenu.less | 48 +- .../client/app/views/header/header.controller.js | 71 +- .../client/app/views/header/header.less | 31 + .../client/app/views/header/header.tpl.html | 36 +- .../microservice-add-details.html | 60 +- .../microservice-add-details.js | 13 +- .../microservice-add-details.less | 48 +- .../microservice-onboarding.controller.js | 25 +- .../notificationhistory.controller.js | 55 +- .../notification-history/notificationhistory.less | 11 + .../notificationhistory.tpl.html | 6 +- .../new-portal-admin.controller.js | 8 +- .../new-portal-admin/new-portal-admin.modal.html | 42 +- .../new-portal-admin/new-portal-admin.modal.less | 2 +- .../views/portal-admin/portal-admin-controller.js | 24 +- .../app/views/portal-admin/portal-admin.tpl.html | 12 +- .../app/views/role/popup_modal_rolefunction.html | 95 +- .../client/app/views/role/role-controller.js | 212 ++-- .../views/role/role-function-list-controller.js | 165 +-- .../client/app/views/role/role-list-controller.js | 72 +- .../client/app/views/role/role.html | 37 +- .../client/app/views/role/role.less | 25 +- .../app/views/role/role_childrole_popup.html | 19 +- .../client/app/views/role/role_function_list.html | 11 +- .../app/views/role/role_functions_popup.html | 38 +- .../client/app/views/role/role_list.html | 27 +- .../app/views/role/rolefunctionpopupController.js | 156 +-- .../app/views/role/rolepopupmodelController.js | 33 +- .../client/app/views/search/search.less | 8 + .../contact-us-manage.controller.less | 46 + .../contact-us-manage/contact-us-manage.html | 255 ++--- .../support/contact-us/contact-us.controller.js | 33 +- .../app/views/support/contact-us/contact-us.less | 40 + .../views/support/contact-us/contact-us.tpl.html | 22 +- .../client/app/views/tabs/tabframe.html | 2 +- .../client/app/views/tabs/tabs.less | 31 +- .../user.notifications.Json.details.controller.js | 13 +- ...user.notifications.Json.details.modal.page.html | 76 +- .../user.notifications.controller.js | 123 +-- ...user.notifications.json.details.modal.page.less | 37 +- .../user.notifications.less | 16 + .../user.notifications.modal.controller.js | 1085 ++++++++++---------- .../user.notifications.modal.less | 32 +- .../user.notifications.modal.page.html | 181 ++-- .../user.notifications.tpl.html | 17 +- .../users/new-user-dialogs/bulk-user.ack.html | 2 +- .../users/new-user-dialogs/bulk-user.confirm.html | 22 +- .../users/new-user-dialogs/bulk-user.controller.js | 15 +- .../users/new-user-dialogs/bulk-user.modal.html | 81 +- .../users/new-user-dialogs/bulk-user.modal.less | 5 +- .../users/new-user-dialogs/new-user.controller.js | 27 +- .../users/new-user-dialogs/new-user.modal.html | 143 ++- .../users/new-user-dialogs/new-user.modal.less | 62 +- .../client/app/views/users/users.controller.js | 56 +- .../client/app/views/users/users.tpl.html | 14 +- .../widget-details.controller.js | 18 +- .../widget-details.modal.html | 85 +- .../widget-details.modal.less | 13 +- .../widget-onboarding.controller.js | 27 +- .../widget-details.modal.html | 4 +- .../widget-details.modal.less | 7 +- 90 files changed, 3206 insertions(+), 2145 deletions(-) create mode 100644 ecomp-portal-FE-common/client/app/views/catalog/add-catalog-dialogs/new-catalog.modal.less create mode 100644 ecomp-portal-FE-common/client/app/views/confirmation-box/reload-page-confirm.html (limited to 'ecomp-portal-FE-common/client/app/views') diff --git a/ecomp-portal-FE-common/client/app/views/account-onboarding/account-add-details/account-add-details.html b/ecomp-portal-FE-common/client/app/views/account-onboarding/account-add-details/account-add-details.html index 3ecb47d0..798b4db1 100644 --- a/ecomp-portal-FE-common/client/app/views/account-onboarding/account-add-details/account-add-details.html +++ b/ecomp-portal-FE-common/client/app/views/account-onboarding/account-add-details/account-add-details.html @@ -1,9 +1,44 @@ - + \ No newline at end of file diff --git a/ecomp-portal-FE-common/client/app/views/dashboard/dashboard-widget-parameters.controller.js b/ecomp-portal-FE-common/client/app/views/dashboard/dashboard-widget-parameters.controller.js index fb9a254f..10ccb9bf 100644 --- a/ecomp-portal-FE-common/client/app/views/dashboard/dashboard-widget-parameters.controller.js +++ b/ecomp-portal-FE-common/client/app/views/dashboard/dashboard-widget-parameters.controller.js @@ -21,7 +21,8 @@ (function () { class WidgetParameterController { - constructor($scope, widgetsCatalogService, userProfileService) { + constructor($scope, widgetsCatalogService, userProfileService, $state,items) { + $scope.ngDialogData=items; let widgetId = $scope.ngDialogData.widgetId; $scope.modflag = false; $scope.isLoadingTable = false; @@ -70,12 +71,13 @@ if(res.status == 'OK'){ $scope.modflag = false; $scope.widgetParam[index].showEdit = false; + $state.reload(); } }); }; } } - WidgetParameterController.$inject = ['$scope', 'widgetsCatalogService', 'userProfileService']; + WidgetParameterController.$inject = ['$scope', 'widgetsCatalogService', 'userProfileService', '$state','items']; angular.module('ecompApp').controller('WidgetParameterController', WidgetParameterController); -})(); +})(); \ No newline at end of file diff --git a/ecomp-portal-FE-common/client/app/views/dashboard/dashboard-widget.controller.less b/ecomp-portal-FE-common/client/app/views/dashboard/dashboard-widget.controller.less index 8f326c42..5c0ce37d 100644 --- a/ecomp-portal-FE-common/client/app/views/dashboard/dashboard-widget.controller.less +++ b/ecomp-portal-FE-common/client/app/views/dashboard/dashboard-widget.controller.less @@ -79,4 +79,59 @@ padding-bottom: 20px; height: 32px; border-color: slategrey !important; width:100%; - } \ No newline at end of file + } + .heading1-txt { + margin-top: 10px; + margin-bottom: 10px; + } + .manage-widgets-txt { + margin-top: 25px; + } + .widget-table-control { + margin:30px; + } + .widget-table { + height:300px; + } + .widget-field { + margin-top: 15px; + margin-left: -80px; + } + .widget-add { + font-size:18px; + } + .widget-type-txt-area { + margin-top: 0px; + margin-bottom: 0px; + height: 150px; + } + .widget-button-height { + height:50px; + } + .widget-button { + float:right; + margin-top:20px; + } + .widget-close-button { + float:right; + } + + .btn-calendar-icon { + position: relative; + width: 10px; + right:25px; + top:0px; +} +.dialog-control{ +bottom:30px; +} +input[type="text"]:focus { + z-index: 0; +} + + .get-access-table{ + height:500px; + overflow:auto; + } + + \ No newline at end of file diff --git a/ecomp-portal-FE-common/client/app/views/dashboard/dashboard.controller.js b/ecomp-portal-FE-common/client/app/views/dashboard/dashboard.controller.js index 8481b5ed..4c5ee2cf 100644 --- a/ecomp-portal-FE-common/client/app/views/dashboard/dashboard.controller.js +++ b/ecomp-portal-FE-common/client/app/views/dashboard/dashboard.controller.js @@ -54,9 +54,10 @@ function _classCallCheck(instance, Constructor) { $scope.editWidgetModalPopup = function(availableData, resourceType) { $scope.editData = JSON.stringify(availableData); $scope.availableDataTemp = $scope.availableData; - ngDialog.open({ + var modalInstance = $modal.open({ templateUrl: 'app/views/dashboard/dashboard-widget-manage.html', controller: 'CommonWidgetController', + windowClass: 'modal-docked', resolve: { message: function message() { var message = { @@ -66,30 +67,41 @@ function _classCallCheck(instance, Constructor) { return message; } } - }).closePromise.then(needUpdate => { - if (resourceType == 'NEWS') { - $scope.updateNews(); - } else if (resourceType == 'EVENTS') { - $scope.updateEvents(); - } else if (resourceType == 'IMPORTANTRESOURCES') { - $scope.updateImportRes(); - } - }); + }) + + modalInstance.result.finally(function (needUpdate){ + if (resourceType == 'NEWS') { + $scope.updateNews(); + } else if (resourceType == 'EVENTS') { + $scope.updateEvents(); + } else if (resourceType == 'IMPORTANTRESOURCES') { + $scope.updateImportRes(); + } + }); }; $scope.editWidgetParameters = function(widgetId) { let data = { widgetId: widgetId } - ngDialog.open({ + var modalInstance = $modal.open({ templateUrl: 'app/views/dashboard/dashboard-widget-parameter-manage.html', controller: 'WidgetParameterController', - data: data - }).closePromise.then(needUpdate => { + windowClass: 'modal-docked', - }); + resolve: { + items: function () { + return data; + } + } + }) + + modalInstance.result.then(function (needUpdate) { + }); }; + + $scope.sort_options = [{ index: 0, value: 'N', @@ -488,7 +500,8 @@ function _classCallCheck(instance, Constructor) { } - }; + + }; this.auditLog = function(app) { console.log(app); diff --git a/ecomp-portal-FE-common/client/app/views/dashboard/dashboard.less b/ecomp-portal-FE-common/client/app/views/dashboard/dashboard.less index 8d8f39fe..02cd960d 100644 --- a/ecomp-portal-FE-common/client/app/views/dashboard/dashboard.less +++ b/ecomp-portal-FE-common/client/app/views/dashboard/dashboard.less @@ -33,7 +33,7 @@ flex-flow: row wrap; width: @table-width; //margin-left: 230px; - margin-bottom: 63px; + margin-bottom: 0px; margin:auto; .app-gridster-header { background-color: @u; @@ -478,10 +478,7 @@ On click the images will be displayed at normal size to complete the effect -webkit-transition: background-color 0.3s ease-out; -moz-transition: background-color 0.3s ease-out; transition: background-color 0.3s ease-out; - span{ - color: #888; } - } .widgetHeaderBtnPosition { width: 30px; @@ -910,4 +907,40 @@ ul { } .icon-content-gridguide{ cursor:move; -} \ No newline at end of file +} + .error-info-txt { + display: none; + font-size: 12px; + margin-left: 5px; + } + .account-info-msg { + color: red; + } + .icon-info { + margin-left: 50%; + font-size: 90px; + color: black; + } + .gridster-box-pointer { + cursor: pointer; + } + .gridster-txt{ + font-size: 12px; + } + .gridster-icon { + font-size: 80px; + color: #067ab4; + } + .widget-gridster { + cursor:move; + } + .widgetHeaderBtns-span { + color: #888; + } + .widgetHeaderBtns-img { + margin-bottom: 3px; + margin-left: 3px; + } + .widget-menu-options { + display: block; + } \ No newline at end of file diff --git a/ecomp-portal-FE-common/client/app/views/dashboard/dashboard.tpl.html b/ecomp-portal-FE-common/client/app/views/dashboard/dashboard.tpl.html index d71b8f79..a981fd66 100644 --- a/ecomp-portal-FE-common/client/app/views/dashboard/dashboard.tpl.html +++ b/ecomp-portal-FE-common/client/app/views/dashboard/dashboard.tpl.html @@ -19,12 +19,11 @@ -->
-