51362b6ce670c34f68433773b92a741b41aa163a
[portal.git] / ecomp-portal-FE-common / client / app / views / role / role_function_list.html
1 <!--
2   ============LICENSE_START==========================================
3   ONAP Portal
4   ===================================================================
5   Copyright © 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         
58         <br>
59         
60         <div class="admins-table">
61         
62          <!-- <a ng-click="addNewRoleFunctionModalPopup();" class="icon-add" size="small" ></a> -->
63                 <div id="create-new-admin" align="left" class="admins-table-create-new-admin">
64                                 <button id="button-admin-create" type="submit" ng-click="addNewRoleFunctionModalPopup();" 
65                                          class="btn btn-alt btn-small">Create</button>
66                         </div>
67                         
68                         <div class="admins-table-space">
69                         <!--    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.  -->
70                         </div>
71         
72         <div id="rolesTable" class="c-ecomp-abs-table default"  title="Role Functions">
73           <span class="ecomp-spinner" ng-show="isLoadingRoleFunctions"></span>
74           <table b2b-table table-data="availableRoleFunctions" current-page="1">
75                 <thead b2b-table-row type="header">
76                         <tr>
77                                 <th id="table-header-name" b2b-table-header width="70%" key="name" sortable="true">Name</th>
78                                 <th id="table-header-code" b2b-table-header width="10%" key="code" sortable="true">Code</th>
79                                 <th id="table-header-edit" b2b-table-header width="10%" sortable="false">Edit?</th>
80                                 <th id="table-header-delete" b2b-table-header width="10%" sortable="false">Delete?</th>
81                         </tr>
82                 </thead>
83                 <tbody b2b-table-row type="body" row-repeat="availableRoleFunction in availableRoleFunctions" class="admins-table-tbody" ><!-- background colors will alternate not properly with multiple tbody-->
84                   <tr>
85                     <td id="table-body-role-{{availableRoleFunction['name'].split(' ').join('-')}}" b2b-table-body width="70%" ng-bind="availableRoleFunction['name']"></td>
86                     <td id="table-body-role-{{availableRoleFunction['code']}}" b2b-table-body width="10%" ng-bind="availableRoleFunction['code']"></td>
87                     <td id="table-body" b2b-table-body width="10%">
88                     <!-- <a ng-click="editRoleFunctionPopup(availableRoleFunction);" >
89                     <img src="static/fusion/images/editicon.gif">
90                     </a> -->
91                     <div ng-click="editRoleFunctionModalPopup(availableRoleFunction);" class="admins-table-btn-txt"><a id="role-{{availableRoleFunction['name'].split(' ').join('-')}}-edit" href="javascript:void(0)" class="icon-edit"></a></div>
92                     </td>
93                      <td b2b-table-body width="10%">
94                         <!-- <a ng-click="removeRole(availableRoleFunction);" ><img src="static/fusion/images/deleteicon.gif"></a> -->
95                         <div ng-click="removeRole(availableRoleFunction);" class="admins-table-btn-txt"><a id="role-{{availableRoleFunction['name'].split(' ').join('-')}}-trash" href="javascript:void(0)" class="icon-misc-trash"></a></div>
96                      </td>
97                   </tr>
98                 </tbody>
99                 </table>
100         </div>
101         
102                    
103         
104         </div>
105         
106         
107         <div id="dialog" title="Add Role Function">
108                 
109                 <div id="fn-ebz-container-name" class="fn-ebz-container" >
110                 <label id="fn-ebz-label-name" class="fn-ebz-text-label"><sup><b>*</b></sup>Name:</label><br>
111                 <input id="fn-ebz-input-{{editRoleFunction.name}}" type="text" class="fn-ebz-text" ng-model="editRoleFunction.name"
112                         maxlength="30" /> 
113                 </div>
114                 <br/>
115                 <div id="fn-ebz-container-code" class="fn-ebz-container" >
116                 <label id="fn-ebz-label-code" class="fn-ebz-text-label"><sup><b>*</b></sup>Code:</label><br>
117                 <input id="fn-ebz-input-{{editRoleFunction.code}}" type="text" class="fn-ebz-text" ng-model="editRoleFunction.code" ng-disabled="editRoleFunction.code!=null"
118                         maxlength="30" /> 
119                 </div>
120                 <br/>
121                 <button id="button-admin-save" type="submit" ng-click="saveRoleFunction(editRoleFunction);"  class="btn btn-alt btn-small">Save</button>
122                 
123         </div>
124         
125 </div>
126 </div>