Security/ Package Name changes
[portal.git] / ecomp-portal-FE-common / client / app / views / role / role.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   .checkbox .skin {
40     left: 112px;
41     top: -8px;
42 }
43 .checkbox input {
44     margin: 0px;
45     left: 105px;
46     height: 20px;
47     top: -4px;
48     }
49 .checkbox span {
50     display: inline-block;
51     margin-left: 1px;
52     margin-top: 0;
53     position: relative;
54     top: -3px;
55 }
56   </style>
57 <div class="w-ecomp-admins-page-main">
58         <div class="admins-home-container" id="page-content">
59                 <div id="title" class="w-ecomp-main-view-title">
60                 <h3 class="heading-page" >Role</h3>
61             </div>      
62             <div  class="admins-table" >
63                         <div>
64                                 <br>
65                             <p class="p-info">Please edit the role details below:&nbsp;</p><br>
66                             
67                              <div class="property-label checkbox-label"> 
68                                         <label for="checkbox-app-is-restricted" class="checkbox"> 
69                                 <input type="checkbox" ng-model="isGlobalRoleChecked" id="checkbox-app-is-restricted"  ng-checked="isGlobalRoleChecked" /> 
70                                 <i id="checkbox-app-is-restricted" class="skin"></i> 
71                                 <span>Global Roles: </span> 
72                             </label> 
73                                 </div> 
74                              
75                                 <div id="role-text" >
76                                         <label id="role-text-name-label" >*Name:</label>
77                                         <input id="input-name"  class="input-field" maxlength="300"  type="text" data-ng-model="role.name">                                      
78                                         <br>
79                                         <label id="role-text-priority-label">Priority:</label>
80                                         <input id="input-priority" class="input-field" maxlength="30"  type="text" data-ng-model="role.priority">                                               
81                                 </div>
82                                 <br>
83                                 <div align="left" >
84                                                 <button id="button-role-save" type="submit" ng-click="saveRole();" class="btn btn-alt btn-small">Save</button>
85                                 </div>
86                                 
87                                 <br>
88                                 <div ng-if="routeRoleId!=0">
89                                 <div id="page-title"  class="pageTitle">
90                                         <label>Role Functions</label>
91                                         <a id="add-new-role" ng-click="addNewRoleFunctionModalPopup();" ng-style="{'cursor':'pointer'}" class="icon-primary-accordion-plus" size="small"></a>
92                                 </div>
93                         
94                                 <div b2b-table table-data="role.roleFunctions"  ng-hide="users.isLoadingTable"  search-string="users.searchString" class="b2b-table-div">
95                                 <span class="ecomp-spinner" ng-show="isLoadingRoleFunctions"></span>
96                                         <table>
97                                                 <thead b2b-table-row type="header">
98                                                         <tr >
99                                                                 <th id="table-header-name" b2b-table-header key="name" sortable="true" >Name</th>
100                                                                 <th id="table-header-remove" b2b-table-header sortable="false" >Remove</th>
101                                                         </tr>
102                                                 </thead>
103                                                 <tbody b2b-table-row type="body"        row-repeat="roleFunction in role.roleFunctions">
104                                                         <tr >
105                                                                 <td id="role-function-{{roleFunction.name}}" b2b-table-body id="rowheader_t1_{{$index}}" headers="col1" ng-bind="roleFunction.name"></td>
106                                                                 <td b2b-table-body headers="rowheader_t1_{{$index}} col4">
107                                                                 <div id="{{$index}}-remove-trash-button" ng-click="removeRoleFunction(roleFunction);" ><a href="javascript:void(0)" class="icon-misc-trash"></a></div>
108                                                                 </td>                                                   
109                                                         </tr>
110                                                 </tbody>
111                                         </table>
112                                 </div>          
113                                 
114                                 <a id="manage-role"  href="roleFunctions">Manage Role Functions</a><br><br>
115                                                                         
116                         </div>
117                         </div>
118                 </div>
119         </div>
120 </div>