[PORTAL-7] Rebase
[portal.git] / ecomp-portal-FE-common / client / app / views / role / role.html
1 <!--\r
2   ================================================================================\r
3   ECOMP Portal\r
4   ================================================================================\r
5   Copyright (C) 2017 AT&T Intellectual Property\r
6   ================================================================================\r
7   Licensed under the Apache License, Version 2.0 (the "License");\r
8   you may not use this file except in compliance with the License.\r
9   You may obtain a copy of the License at\r
10   \r
11        http://www.apache.org/licenses/LICENSE-2.0\r
12   \r
13   Unless required by applicable law or agreed to in writing, software\r
14   distributed under the License is distributed on an "AS IS" BASIS,\r
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16   See the License for the specific language governing permissions and\r
17   limitations under the License.\r
18   ================================================================================\r
19   -->\r
20 <div class="w-ecomp-admins-page-main">\r
21         <div class="admins-home-container" id="page-content">\r
22                 <div id="title" class="w-ecomp-main-view-title">\r
23                 <h3 class="heading-page" >Role</h3>\r
24             </div>      \r
25             <div  class="admins-table" >\r
26                         <div>\r
27                                 <br>\r
28                             <p class="p-info">Please edit the role details below:&nbsp;</p><br>\r
29                              \r
30                                 <div id="role-text" >\r
31                                         <label id="role-text-name-label" >*Name:</label>\r
32                                         <input id="input-name"  class="input-field" maxlength="30"  type="text" data-ng-model="role.name">                                       \r
33                                         <br>\r
34                                         <label id="role-text-priority-label">Priority:</label>\r
35                                         <input id="input-priority" class="input-field" maxlength="30"  type="text" data-ng-model="role.priority">                                               \r
36                                 </div>\r
37                                 <br>\r
38                                 <div align="left" >\r
39                                                 <button id="button-role-save" type="submit" ng-click="saveRole();" class="btn btn-alt btn-small">Save</button>\r
40                                 </div>\r
41                                 \r
42                                 <br>\r
43                                 <div id="page-title"  class="pageTitle">\r
44                                         <label>Role Functions</label>\r
45                                         <a id="add-new-role" ng-click="addNewRoleFunctionModalPopup();" ng-style="{'cursor':'pointer'}" class="icon-primary-accordion-plus" size="small"></a>\r
46                                 </div>\r
47                         \r
48                                 <div b2b-table table-data="role.roleFunctions"  ng-hide="users.isLoadingTable"  search-string="users.searchString" class="b2b-table-div">\r
49                                         <table>\r
50                                                 <thead b2b-table-row type="header">\r
51                                                         <tr >\r
52                                                                 <th id="table-header-name" b2b-table-header key="name" sortable="true" >Name</th>\r
53                                                                 <th id="table-header-remove" b2b-table-header sortable="false" >Remove</th>\r
54                                                         </tr>\r
55                                                 </thead>\r
56                                                 <tbody b2b-table-row type="body"        row-repeat="roleFunction in role.roleFunctions">\r
57                                                         <tr >\r
58                                                                 <td id="role-function-{{roleFunction.name}}" b2b-table-body id="rowheader_t1_{{$index}}" headers="col1" ng-bind="roleFunction.name"></td>\r
59                                                                 <td b2b-table-body headers="rowheader_t1_{{$index}} col4">\r
60                                                                 <div ng-click="removeRoleFunction(roleFunction);" ><a href="javascript:void(0)" class="icon-misc-trash"></a></div>\r
61                                                                 </td>                                                   \r
62                                                         </tr>\r
63                                                 </tbody>\r
64                                         </table>\r
65                                 </div>          \r
66                                 \r
67                                 <a id="manage-role"  href="roleFunctions">Manage Role Functions</a><br><br>\r
68                                 \r
69                                 <div id="page-title-child" class="pageTitle">\r
70                                         <label>Child Roles</label>\r
71                                         <a id="add-child-role"  ng-click="addNewChildRoleModalPopup();" ng-style="{'cursor':'pointer'}" class="icon-primary-accordion-plus" size="small"></a>\r
72                                 </div>\r
73                                 \r
74                                 <div b2b-table table-data="role.childRoles"  ng-hide="users.isLoadingTable"     search-string="users.searchString" class="b2b-table-div">\r
75                                         <table>\r
76                                                 <thead b2b-table-row type="header">\r
77                                                         <tr >\r
78                                                                 <th id="table-header-name" b2b-table-header key="firstName" sortable="true" >Name</th>\r
79                                                                 <th id="table-header-remove" b2b-table-header key="lastName" sortable="true" >Remove</th>\r
80                                                         </tr>\r
81                                                 </thead>\r
82                                                 <tbody b2b-table-row type="body"        row-repeat="role in role.childRoles">\r
83                                                         <tr >\r
84                                                                 <td id="role-function-{{role.name}}" b2b-table-body id="rowheader_t1_{{$index}}" headers="col1" ng-bind="role.name"></td>\r
85                                                                 <td b2b-table-body headers="rowheader_t1_{{$index}} col4">\r
86                                                                 <div ng-click="removeChildRole(role);" ><a href="javascript:void(0)" class="icon-misc-trash"></a></div>\r
87                                                                 </td>                                                   \r
88                                                         </tr>\r
89                                                 </tbody>\r
90                                         </table>\r
91                                 </div>                                  \r
92                         </div>\r
93         \r
94                 </div>\r
95         </div>\r
96 </div>\r