summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-FE-common/client/app/views/role/role_function_list.html
blob: 51362b6ce670c34f68433773b92a741b41aa163a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!--
  ============LICENSE_START==========================================
  ONAP Portal
  ===================================================================
  Copyright © 2017 AT&T Intellectual Property. All rights reserved.
  ===================================================================
 
  Unless otherwise specified, all software contained herein is licensed
  under the Apache License, Version 2.0 (the “License”);
  you may not use this software except in compliance with the License.
  You may obtain a copy of the License at
 
              http://www.apache.org/licenses/LICENSE-2.0
 
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
 
  Unless otherwise specified, all documentation contained herein is licensed
  under the Creative Commons License, Attribution 4.0 Intl. (the “License”);
  you may not use this documentation except in compliance with the License.
  You may obtain a copy of the License at
 
              https://creativecommons.org/licenses/by/4.0/
 
  Unless required by applicable law or agreed to in writing, documentation
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
 
  ============LICENSE_END============================================
 
  ECOMP is a trademark and service mark of AT&T Intellectual Property.
  -->
<style>
.c-ecomp-abs-table .tablesorter-default tbody tr td div {
  line-height: 20px;
}

.c-ecomp-abs-table{
    width: 100%;
    height: 600px;
    overflow-x: auto;
    overflow-y: auto;
	background-color: white;
}
</style>
<div class="w-ecomp-admins-page-main">
	<div class="admins-home-container" id="page-content">	
    <div id="title" class="w-ecomp-main-view-title">
    <h3 class="heading-page" >Role Functions</h3>
    </div>
	        
	
	<br>
	
	<div class="admins-table">
	
	 <!-- <a ng-click="addNewRoleFunctionModalPopup();" class="icon-add" size="small" ></a> -->
	        <div id="create-new-admin" align="left" class="admins-table-create-new-admin">
				<button id="button-admin-create" type="submit" ng-click="addNewRoleFunctionModalPopup();" 
					 class="btn btn-alt btn-small">Create</button>
			</div>
			
			<div class="admins-table-space">
			<!-- 	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.  -->
			</div>
	
	<div id="rolesTable" class="c-ecomp-abs-table default"  title="Role Functions">
	  <span class="ecomp-spinner" ng-show="isLoadingRoleFunctions"></span>
	  <table b2b-table table-data="availableRoleFunctions" current-page="1">
	  	<thead b2b-table-row type="header">
	  		<tr>
	  			<th id="table-header-name" b2b-table-header width="70%" key="name" sortable="true">Name</th>
	  			<th id="table-header-code" b2b-table-header width="10%" key="code" sortable="true">Code</th>
	  			<th id="table-header-edit" b2b-table-header width="10%" sortable="false">Edit?</th>
	  			<th id="table-header-delete" b2b-table-header width="10%" sortable="false">Delete?</th>
	  		</tr>
	  	</thead>
	  	<tbody b2b-table-row type="body" row-repeat="availableRoleFunction in availableRoleFunctions" class="admins-table-tbody" ><!-- background colors will alternate not properly with multiple tbody-->
		  <tr>
		    <td id="table-body-role-{{availableRoleFunction['name'].split(' ').join('-')}}" b2b-table-body width="70%" ng-bind="availableRoleFunction['name']"></td>
		    <td id="table-body-role-{{availableRoleFunction['code']}}" b2b-table-body width="10%" ng-bind="availableRoleFunction['code']"></td>
		    <td id="table-body" b2b-table-body width="10%">
		    <!-- <a ng-click="editRoleFunctionPopup(availableRoleFunction);" >
		    <img src="static/fusion/images/editicon.gif">
		    </a> -->
		    <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>
		    </td>
		     <td b2b-table-body width="10%">
		    	<!-- <a ng-click="removeRole(availableRoleFunction);" ><img src="static/fusion/images/deleteicon.gif"></a> -->
		    	<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>
		     </td>
		  </tr>
		</tbody>
		</table>
	</div>
	
		   
	
	</div>
	
	
	<div id="dialog" title="Add Role Function">
	   	
	   	<div id="fn-ebz-container-name" class="fn-ebz-container" >
		<label id="fn-ebz-label-name" class="fn-ebz-text-label"><sup><b>*</b></sup>Name:</label><br>
		<input id="fn-ebz-input-{{editRoleFunction.name}}" type="text" class="fn-ebz-text" ng-model="editRoleFunction.name"
			maxlength="30" /> 
		</div>
	   	<br/>
	   	<div id="fn-ebz-container-code" class="fn-ebz-container" >
		<label id="fn-ebz-label-code" class="fn-ebz-text-label"><sup><b>*</b></sup>Code:</label><br>
		<input id="fn-ebz-input-{{editRoleFunction.code}}" type="text" class="fn-ebz-text" ng-model="editRoleFunction.code" ng-disabled="editRoleFunction.code!=null"
			maxlength="30" /> 
		</div>
		<br/>
		<button id="button-admin-save" type="submit" ng-click="saveRoleFunction(editRoleFunction);"  class="btn btn-alt btn-small">Save</button>
		
	</div>
	
</div>
</div>