2 ============LICENSE_START==========================================
4 ===================================================================
5 Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 ===================================================================
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
13 http://www.apache.org/licenses/LICENSE-2.0
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.
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
26 https://creativecommons.org/licenses/by/4.0/
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.
34 ============LICENSE_END============================================
36 ECOMP is a trademark and service mark of AT&T Intellectual Property.
39 .c-ecomp-abs-table .tablesorter-default tbody tr td div {
48 background-color: white;
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>
60 <div class="admins-table">
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>
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. -->
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">
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>
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-->
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">
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>
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>
107 <div id="dialog" title="Add Role Function">
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"
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"
121 <button id="button-admin-save" type="submit" ng-click="saveRoleFunction(editRoleFunction);" class="btn btn-alt btn-small">Save</button>