summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-FE/client/app/views/support/get-access
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-portal-FE/client/app/views/support/get-access')
-rw-r--r--ecomp-portal-FE/client/app/views/support/get-access/get-access.controller.js70
-rw-r--r--ecomp-portal-FE/client/app/views/support/get-access/get-access.controller.spec.js19
-rw-r--r--ecomp-portal-FE/client/app/views/support/get-access/get-access.less67
-rw-r--r--ecomp-portal-FE/client/app/views/support/get-access/get-access.tpl.html88
4 files changed, 0 insertions, 244 deletions
diff --git a/ecomp-portal-FE/client/app/views/support/get-access/get-access.controller.js b/ecomp-portal-FE/client/app/views/support/get-access/get-access.controller.js
deleted file mode 100644
index b9b254ac..00000000
--- a/ecomp-portal-FE/client/app/views/support/get-access/get-access.controller.js
+++ /dev/null
@@ -1,70 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * 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
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
-'use strict';
-(function () {
- class GetAccessCtrl {
- constructor($log, $stateParams, getAccessService,applicationsService, ngDialog) {
- // $log.debug('GetAccessCtrl: appService param is: ' + applicationsService.goGetAccessAppName);
-
- this.updateAppsList = () => {
- getAccessService.getListOfApp().then(res=> {
- var tableData=[];
- // $log.info('GetAccessCtrl::updateAppsList: getting res');
- var result = (typeof(res.data) != "undefined" && res.data!=null)?res.data:null;
- // $log.info('GetAccessCtrl::updateAppsList: result',result);
- // $log.info('GetAccessCtrl::updateAppsList: done');
- var source = result;
- // $log.info('GetAccessCtrl::updateAppsList source: ', source);
- for(var i=0;i<source.length; i++){
- var dataArr = source[i];
- var dataTemp={
- ecomp_function: dataArr.ecompFunction,
- app_name:dataArr.appName,
- role_name:dataArr.roleName
- }
- tableData.push(dataTemp);
- }
- this.appTable=tableData;
-
- if( $stateParams.appName != null)
- this.searchString = $stateParams.appName;
- else
- this.searchString = applicationsService.goGetAccessAppName;
- // the parameter has been used; clear the value.
- applicationsService.goGetAccessAppName = '';
- }).catch(err=> {
- $log.error('GetAccessCtrl:error:: ', err);
- }).finally(() => {
- this.isLoadingTable = false;
- });
- };
- let init = () => {
- // $log.info('GetAccessCtrl:: initializing...');
- this.searchString = '';
- this.getAccessTableHeaders = ['ECOMP Function', 'Application Name', 'Role Name'];
- this.appTable=[];
- this.updateAppsList();
- };
- init();
- }
- }
- GetAccessCtrl.$inject = ['$log', '$stateParams', 'getAccessService', 'applicationsService', 'ngDialog'];
- angular.module('ecompApp').controller('GetAccessCtrl', GetAccessCtrl);
-})();
diff --git a/ecomp-portal-FE/client/app/views/support/get-access/get-access.controller.spec.js b/ecomp-portal-FE/client/app/views/support/get-access/get-access.controller.spec.js
deleted file mode 100644
index 34042c14..00000000
--- a/ecomp-portal-FE/client/app/views/support/get-access/get-access.controller.spec.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * 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
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
diff --git a/ecomp-portal-FE/client/app/views/support/get-access/get-access.less b/ecomp-portal-FE/client/app/views/support/get-access/get-access.less
deleted file mode 100644
index 20b406e9..00000000
--- a/ecomp-portal-FE/client/app/views/support/get-access/get-access.less
+++ /dev/null
@@ -1,67 +0,0 @@
-/*-
- * ================================================================================
- * eCOMP Portal
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * 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
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ================================================================================
- */
- .w-ecomp-get-access-home {
- .bg_w;
- position: @page-main-position;
- top: @page-main-top;
- left: @page-main-left;
- right: @page-main-right;
- bottom: @page-main-bottom;
- padding-top: @padding-top;
- padding-left: @padding-left-side;
-
- .get-access-home-container {
- .content_justify;
- position: relative;
- padding-right: 0;
- padding-left: 0;
- padding-bottom: 32px;
- width: 100%;
-
- .get-access-home-title {
- .a24r;
- margin: auto;
- .content_justify;
- }
-
- .get-access-general-div {
- margin: auto;
- padding-top: 15px;
- padding-bottom: 15px;
- .content_justify;
- }
- }
-
- .get-access-table {
- width: @table-width;
- margin: @table-margin;
-
- .table-control {
- .table-dropdown-filter {
- width: @table-dropdown-filter-width;
- display: @table-dropdown-filter-display;
- }
- }
-
- .table-body {
- cursor: pointer;
- }
- }
-}
diff --git a/ecomp-portal-FE/client/app/views/support/get-access/get-access.tpl.html b/ecomp-portal-FE/client/app/views/support/get-access/get-access.tpl.html
deleted file mode 100644
index 3ed92f14..00000000
--- a/ecomp-portal-FE/client/app/views/support/get-access/get-access.tpl.html
+++ /dev/null
@@ -1,88 +0,0 @@
-<!--
- ================================================================================
- eCOMP Portal
- ================================================================================
- Copyright (C) 2017 AT&T Intellectual Property
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- 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
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ================================================================================
- -->
-<div class="w-ecomp-get-access-home">
- <div class="get-access-home-container">
- <div class="admins-page-main" id="contentId">
- <div id="title" class="get-access-home-title">Get Access</div>
- <div class="get-access-general-div">
- <span>
- Request access for following functions by sending email to the Application's Admin. For Admin contact details, please <a href='contactUs'>click here</a>.
- </span>
- </div>
- <div class="get-access-table">
- <div class="table-control">
- <input id="input-table-search"
- class="table-search"
- type="text"
- placeholder="Search"
- ng-model="access.searchString"/>
- <span class="ecomp-spinner" ng-show="access.isLoadingTable"></span>
- <div style="height: auto;" class="c-ecomp-att-abs-table default" ng-hide="access.isLoadingTable">
- <!-- expects data to arrive sorted by first column: ecomp_function -->
- <table att-table id="table-main"
- table-data="access.appTable"
- search-string="access.searchString"
- view-per-page="access.viewPerPageIgnored"
- current-page="access.currentPageIgnored"
- total-page="access.totalPageIgnored">
- <thead att-table-row type="header">
- <tr>
- <th id="th-access-0" att-table-header key="ecomp_function" sortable="false">{{access.getAccessTableHeaders[0]}}</th>
- <th id="th-access-1" att-table-header key="app_name" sortable="false">{{access.getAccessTableHeaders[1]}}</th>
- <th id="th-access-2" att-table-header key="role_name" sortable="false">{{access.getAccessTableHeaders[2]}}</th>
- </tr>
- </thead>
- <!-- Use track-by="UNIQUE KEY HERE" or leave out if no unique keys in data -->
- <tbody att-table-row type="body"
- class="table-body"
- track-by="$index"
- row-repeat="rowData in access.appTable">
- <tr id="tr-rowData" ng-click="">
- <td att-table-body>
- <div id="access-page-function"
- ng-show="$index == 0 || access.appTable[$index-1].ecomp_function != rowData.ecomp_function"
- ng-bind="rowData.ecomp_function">
- </div>
- </td>
- <td att-table-body>
- <div id="access-page-appName"
- ng-show="$index == 0 || access.appTable[$index-1].app_name != rowData.app_name"
- ng-bind="rowData.app_name"></div>
- </td>
- <td att-table-body>
- <div id="access-page-roleName" ng-bind="rowData.role_name"></div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
-</div>
-</div>
-<style>
-.tablesorter-default{
- cursor: default;
-}
-.admins-page-main .admins-table .table-body {
- cursor: default;
-}
-</style>