[PORTAL-20,PORTAL-23,PORTAL-32] Repair defects
[portal.git] / ecomp-portal-FE-common / client / app / views / support / get-access / get-access.tpl.html
1 <!--
2   ================================================================================
3   ECOMP Portal
4   ================================================================================
5   Copyright (C) 2017 AT&T Intellectual Property
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10   
11        http://www.apache.org/licenses/LICENSE-2.0
12   
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ================================================================================
19   -->
20 <div class="w-ecomp-get-access-home">
21         <div class="get-access-home-container" id="page-content">
22                 <div class="admins-page-main">
23                         <div id="title" class="w-ecomp-main-view-title">
24                         <h1 class="heading-page">Get Access</h1>
25                         </div>
26                         <div ng-include
27                                 src="'app/views/support/get-access/get-accessinfo.html'"></div>
28                         <div class="get-access-table">
29                                 <div class="table-control">
30                                         <input id="input-table-search" class="table-search" type="text"
31                                                 placeholder="Search" ng-model="access.searchString" /> <span
32                                                 class="ecomp-spinner" ng-show="access.isLoadingTable"></span>
33                                         <div b2b-table table-data="access.appTable"
34                                                 ng-hide="access.isLoadingTable"
35                                                 search-string="access.searchString"
36                                                 class="b2b-table-div">
37                                                 <table>
38                                                         <thead b2b-table-row type="header">
39                                                                 <tr>
40                                                                         <th id="th-access-0" b2b-table-header key="ecomp_function"
41                                                                                 sortable="false" >{{access.getAccessTableHeaders[0]}}</th>
42                                                                         <th id="th-access-1" b2b-table-header key="app_name"
43                                                                                 sortable="false">{{access.getAccessTableHeaders[1]}}</th>
44                                                                         <th id="th-access-2" b2b-table-header key="role_name"
45                                                                                 sortable="false">{{access.getAccessTableHeaders[2]}}</th>
46                                                                         <th id="th-access-3" b2b-table-header key="current_role"
47                                                                                 sortable="false">{{access.getAccessTableHeaders[3]}}</th>
48                                                                         <th id="th-access-4" b2b-table-header key="request_access"
49                                                                                 sortable="false">{{access.getAccessTableHeaders[4]}}</th>
50                                                                 </tr>
51                                                         </thead>
52                                                         <tbody b2b-table-row type="body"
53                                                                 row-repeat="rowData in access.appTable | filter:access.searchString | startFrom:(access.currentPage-1)*access.viewPerPage | limitTo:access.viewPerPage | orderBy:'ecomp_function'"  track-by="$index">
54                                                                 <tr id="tr-rowData" ng-click="openAppRoleModal(rowData)">
55                                                                         <td b2b-table-body>
56                                                                                 <div id="access-page-function"
57                                                                                         ng-if="rowData.ecomp_function !== 'Ecomp Function Not Available'"
58                                                                                         ng-bind="rowData.ecomp_function"></div>
59                                                                                 <div id="access-page-function"
60                                                                                         ng-if="rowData.ecomp_function === 'Ecomp Function Not Available'"
61                                                                                         ng-bind="rowData.ecomp_function"></div>
62                                                                         </td>
63                                                                         <td b2b-table-body>
64                                                                                 <div id="access-page-appName"
65                                                                                         ng-bind="rowData.app_name"></div>
66                                                                         </td>
67                                                                         <td b2b-table-body>
68                                                                                 <div id="access-page-roleName" ng-bind="rowData.role_name"></div>
69                                                                         </td>
70                                                                         <td b2b-table-body>
71                                                                                 <div id="access-page-currentRole"
72                                                                                         ng-if="rowData.current_role === 'Y'">
73                                                                                         <i class="icon-controls-check"></i>
74                                                                                 </div>
75                                                                         </td>
76                                                                         <td b2b-table-body>
77                                                                                 <div id="access-page-RequestAccess"
78                                                                                         ng-if="rowData.request_type !== null"
79                                                                                         ng-bind="rowData.request_type"></div>
80                                                                         </td>
81                                                                 </tr>
82                                                         </tbody>
83                                                 </table>
84                                         </div>
85                                 </div>
86                         </div>
87                         <div b2b-pagination="" input-id="goto-page-1" total-pages="access.totalPage" current-page="access.currentPage" click-handler="access.updateTable" role="navigation" aria-label="Customer Data Pages"></div>     
88                 </div>
89         </div>
90 </div>
91
92 <style>
93 .tablesorter-default {
94         cursor: default;
95 }
96
97 .admins-page-main .admins-table .table-body {
98         cursor: default;
99 }
100 </style>