[PORTAL-7] Rebase
[portal.git] / ecomp-portal-FE-common / client / app / views / role / role_function_list.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 <style>\r
21 .c-ecomp-abs-table .tablesorter-default tbody tr td div {\r
22   line-height: 20px;\r
23 }\r
24 \r
25 .c-ecomp-abs-table{\r
26     width: 100%;\r
27     height: 600px;\r
28     overflow-x: auto;\r
29     overflow-y: auto;\r
30         background-color: white;\r
31 }\r
32 </style>\r
33 <div class="w-ecomp-admins-page-main">\r
34         <div class="admins-home-container" id="page-content">   \r
35     <div id="title" class="w-ecomp-main-view-title">\r
36     <h3 class="heading-page" >Role Functions</h3>\r
37     </div>\r
38                 \r
39         \r
40         <br>\r
41         \r
42         <div class="admins-table">\r
43         \r
44          <!-- <a ng-click="addNewRoleFunctionModalPopup();" class="icon-add" size="small" ></a> -->\r
45                 <div id="create-new-admin" align="left" style="marin-bottom: 50px;">\r
46                                 <button id="button-admin-create" type="submit" ng-click="addNewRoleFunctionModalPopup();" \r
47                                          class="btn btn-alt btn-small">Create</button>\r
48                         </div>\r
49                         \r
50                         <div style="text-align: justify;text-align-last:auto;">\r
51                         <!--    Click on the edit icon to update a role function, the plus icon to add additional role functions, or the delete icon to remove them.  -->\r
52                         </div>\r
53         \r
54         <div id="rolesTable" class="c-ecomp-abs-table default"  title="Role Functions">\r
55           <table b2b-table table-data="availableRoleFunctions" current-page="1">\r
56                 <thead b2b-table-row type="header">\r
57                         <tr>\r
58                                 <th id="table-header-name" b2b-table-header width="70%" key="name" sortable="true">Name</th>\r
59                                 <th id="table-header-code" b2b-table-header width="10%" key="code" sortable="true">Code</th>\r
60                                 <th id="table-header-edit" b2b-table-header width="10%" sortable="false">Edit?</th>\r
61                                 <th id="table-header-delete" b2b-table-header width="10%" sortable="false">Delete?</th>\r
62                         </tr>\r
63                 </thead>\r
64                 <tbody b2b-table-row type="body" row-repeat="availableRoleFunction in availableRoleFunctions" style="max-height: 980px;" ><!-- background colors will alternate not properly with multiple tbody-->\r
65                   <tr>\r
66                     <td id="table-body-role-{{availableRoleFunction['name'].split(' ').join('-')}}" b2b-table-body width="70%" ng-bind="availableRoleFunction['name']"></td>\r
67                     <td id="table-body-role-{{availableRoleFunction['code']}}" b2b-table-body width="10%" ng-bind="availableRoleFunction['code']"></td>\r
68                     <td id="table-body" b2b-table-body width="10%">\r
69                     <!-- <a ng-click="editRoleFunctionPopup(availableRoleFunction);" >\r
70                     <img src="static/fusion/images/editicon.gif">\r
71                     </a> -->\r
72                     <div ng-click="editRoleFunctionModalPopup(availableRoleFunction);" style="font-size:20px;"><a id="role-{{availableRoleFunction['name'].split(' ').join('-')}}-edit" href="javascript:void(0)" class="icon-edit"></a></div>\r
73                     </td>\r
74                      <td b2b-table-body width="10%">\r
75                         <!-- <a ng-click="removeRole(availableRoleFunction);" ><img src="static/fusion/images/deleteicon.gif"></a> -->\r
76                         <div ng-click="removeRole(availableRoleFunction);" style="font-size:20px;"><a id="role-{{availableRoleFunction['name'].split(' ').join('-')}}-trash" href="javascript:void(0)" class="icon-misc-trash"></a></div>\r
77                      </td>\r
78                   </tr>\r
79                 </tbody>\r
80                 </table>\r
81         </div>\r
82         \r
83                    \r
84         \r
85         </div>\r
86         \r
87         \r
88         <div id="dialog" title="Add Role Function">\r
89                 \r
90                 <div id="fn-ebz-container-name" class="fn-ebz-container" >\r
91                 <label id="fn-ebz-label-name" class="fn-ebz-text-label"><sup><b>*</b></sup>Name:</label><br>\r
92                 <input id="fn-ebz-input-{{editRoleFunction.name}}" type="text" class="fn-ebz-text" ng-model="editRoleFunction.name"\r
93                         maxlength="30" /> \r
94                 </div>\r
95                 <br/>\r
96                 <div id="fn-ebz-container-code" class="fn-ebz-container" >\r
97                 <label id="fn-ebz-label-code" class="fn-ebz-text-label"><sup><b>*</b></sup>Code:</label><br>\r
98                 <input id="fn-ebz-input-{{editRoleFunction.code}}" type="text" class="fn-ebz-text" ng-model="editRoleFunction.code" ng-disabled="editRoleFunction.code!=null"\r
99                         maxlength="30" /> \r
100                 </div>\r
101                 <br/>\r
102                 <button id="button-admin-save" type="submit" ng-click="saveRoleFunction(editRoleFunction);"  class="btn btn-alt btn-small">Save</button>\r
103                 \r
104         </div>\r
105         \r
106 </div>\r
107 </div>\r