Security/ Package Name changes
[portal.git] / ecomp-portal-FE-common / client / app / views / role / role_function_list.html
1 <!--
2   ============LICENSE_START==========================================
3   ONAP Portal
4   ===================================================================
5   Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6   ===================================================================
7  
8   Unless otherwise specified, all software contained herein is licensed
9   under the Apache License, Version 2.0 (the "License");
10   you may not use this software except in compliance with the License.
11   You may obtain a copy of the License at
12  
13               http://www.apache.org/licenses/LICENSE-2.0
14  
15   Unless required by applicable law or agreed to in writing, software
16   distributed under the License is distributed on an "AS IS" BASIS,
17   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18   See the License for the specific language governing permissions and
19   limitations under the License.
20  
21   Unless otherwise specified, all documentation contained herein is licensed
22   under the Creative Commons License, Attribution 4.0 Intl. (the "License");
23   you may not use this documentation except in compliance with the License.
24   You may obtain a copy of the License at
25  
26               https://creativecommons.org/licenses/by/4.0/
27  
28   Unless required by applicable law or agreed to in writing, documentation
29   distributed under the License is distributed on an "AS IS" BASIS,
30   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31   See the License for the specific language governing permissions and
32   limitations under the License.
33  
34   ============LICENSE_END============================================
35  
36   ECOMP is a trademark and service mark of AT&T Intellectual Property.
37   -->
38 <style>
39 .c-ecomp-abs-table .tablesorter-default tbody tr td div {
40   line-height: 20px;
41 }
42
43 .c-ecomp-abs-table{
44     width: 100%;
45     height: 600px;
46     overflow-x: auto;
47     overflow-y: auto;
48         background-color: white;
49 }
50 </style>
51 <div class="w-ecomp-admins-page-main">
52         <div class="admins-home-container" id="page-content">   
53     <div id="title" class="w-ecomp-main-view-title">
54     <h3 class="heading-page" >Role Functions</h3>
55     </div>
56         
57         <div class="admins-table">
58         <!-- Centralized Apps -->
59         <div class="table-dropdown" ng-if="apps.selectedCentralizedApp">
60                 <select id="dropdown1" name="dropdown1" b2b-dropdown ng-change="getRoleFunctions(apps.selectedCentralizedApp);" 
61                                         ng-model="apps.selectedCentralizedApp">
62                 <option b2b-dropdown-list option-repeat="item in centralizedApps" value="{{item.appId}}">{{item.appName}}</option>
63              </select>
64         </div>
65         <br/>   
66         
67         <div id="create-new-admin" align="left" class="admins-table-create-new-admin">
68                 <button id="button-admin-create" type="submit" ng-click="addNewRoleFunctionModalPopup();" 
69                          class="btn btn-alt btn-small">Create</button>
70                 <button ng-if="apps.selectedCentralizedApp" id="button-sync-functions" type="submit" ng-click="syncRoleFunctionsFromExternalAuthSystem(apps.selectedCentralizedApp)" 
71                          class="btn btn-alt btn-small"><i class="icon-arrows-update-refresh-syncL" aria-hidden="true"></i>&nbsp;Sync Functions</button>
72         </div>
73         
74         <div class="admins-table-space">
75         </div>
76         
77         <div id="rolesTable" class="c-ecomp-abs-table default"  title="Role Functions">
78           <span class="ecomp-spinner" ng-show="isLoadingRoleFunctions"></span>
79           <table b2b-table table-data="availableRoleFunctions" current-page="1">
80                 <thead b2b-table-row type="header">
81                         <tr>
82                                 <th id="table-header-type" b2b-table-header width="10%" key="type" sortable="true">Type</th>
83                                 <th id="table-header-code" b2b-table-header width="10%" key="code" sortable="true">Instance</th>
84                                 <th id="table-header-action" b2b-table-header width="10%" key="action" sortable="true">Action</th>
85                                 <th id="table-header-name" b2b-table-header width="70%" key="name" sortable="true">Name</th>
86                                 <th id="table-header-edit" b2b-table-header width="10%" sortable="false">Edit?</th>
87                                 <th id="table-header-delete" b2b-table-header width="10%" sortable="false">Delete?</th>
88                         </tr>
89                 </thead>
90                 <tbody b2b-table-row type="body" row-repeat="availableRoleFunction in availableRoleFunctions" class="admins-table-tbody" ><!-- background colors will alternate not properly with multiple tbody-->
91                   <tr>
92                     <td id="table-body-role-{{availableRoleFunction['type'].split(' ').join('-')}}" b2b-table-body width="10%" ng-bind="availableRoleFunction['type']"></td>
93                     <td id="table-body-role-{{availableRoleFunction['code'].split(' ').join('-')}}" b2b-table-body width="10%" ng-bind="availableRoleFunction['code']"></td>
94                     <td id="table-body-role-{{availableRoleFunction['action']}}" b2b-table-body width="10%" ng-bind="availableRoleFunction['action']"></td>
95                     <td id="table-body-role-{{availableRoleFunction['name'].split(' ').join('-')}}" b2b-table-body width="70%" ng-bind="availableRoleFunction['name']"></td>
96                     <td id="table-body" b2b-table-body width="10%">
97                     <div ng-click="editRoleFunctionModalPopup(availableRoleFunction);" class="icon-edit" id="role-{{availableRoleFunction['name'].split(' ').join('-')}}-edit"></div>
98                     </td>
99                      <td b2b-table-body width="10%">
100                         <!-- <a ng-click="removeRole(availableRoleFunction);" ><img src="static/fusion/images/deleteicon.gif"></a> -->
101                         <div ng-click="removeRole(availableRoleFunction);" class="icon-misc-trash" id="role-{{availableRoleFunction['name'].split(' ').join('-')}}-trash"></div>
102                      </td>
103                   </tr>
104                 </tbody>
105                 </table>
106         </div>
107         
108         </div>
109 </div>
110 </div>