Deliver centralized role management feature
[portal.git] / ecomp-portal-FE-common / client / app / views / role / role_list.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   <style>
21   .property-label{
22   text-align: right;
23   }
24   </style>
25 <div class="w-ecomp-admins-page-main">
26         <div class="admins-home-container" id="page-content">
27                 <div id="title" class="w-ecomp-main-view-title">
28                         <h1 class="heading-page" >Roles</h1>
29                 </div>
30                 <div class="admins-table">
31                         <div id="button-create-role" align="left" class="admins-table-btn-create" >
32                                 <button id="button-create-role" ng-click="goToUrl(0)" class = "btn btn-alt btn-small">Create</button>
33                         </div>
34                         <br>
35                           <div class="property-label">
36                                         <span ID="required" style="color: Red;font-size: 210%;" visible="false"> *</span>-----Indicates Global Roles    </div>
37                         <div b2b-table table-data="availableRoles"  search-string="searchString" class="b2b-table-div">
38                         <span class="ecomp-spinner" ng-show="showSpinner"></span>
39                         <table>
40                             <thead b2b-table-row type="header">
41                                 <tr>
42                                     <th b2b-table-header key="name" sortable="true" default-sort="a" id="col1">Name</th>
43                                     <th b2b-table-header key="priority" sortable="true" id="col2">Priority</th>
44                                     <th b2b-table-header id="col3" sortable="false">Active</th>
45                                     <th b2b-table-header id="col4" sortable="false">Edit</th>
46                                 </tr>
47                             </thead>
48                             <tbody b2b-table-row type="body" row-repeat="rowData in availableRoles">
49                                 <tr>
50                                    <!--  <td b2b-table-body id="rowheader_t1_{{$index}}" headers="col1" ng-bind="rowData['name']"></td> -->
51                                    <td b2b-table-body>
52                                                                 <span  ng-if="rowData.name.indexOf('global_')!=-1" id="required" style="color: Red;font-size: 180%;" visible="false"> *</span>
53                                                                 <span>{{rowData.name}}</span>
54                                                                 </td>
55                                     <td b2b-table-body ng-bind="rowData['priority']"></td>
56                                     <td b2b-table-body headers="rowheader_t1_{{$index}} col3" >
57                                         <div >
58                                                                 <label class="btn-switch-label" tabindex="0" role="option">
59                                                                                 <input type="checkbox" id="{{$index}}-button-toggle-role" b2b-switches ng-model="rowData.active" ng-click="toggleRole(rowData.active,rowData);">
60                                                                     </label> 
61                                                         </div>
62                                     </td>
63                                     <td b2b-table-body id="{{$index}}-button-edit-role" class="icon-misc-pen" ng-click="goToUrl(rowData.id)"></td>    
64                                 </tr>
65                             </tbody>
66                         </table>
67                         
68                       
69                     </div>
70                 </div>
71         </div>
72 </div>
73
74