summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-overlay/src/main/webapp/app/fusion/scripts/DS2-view-models/ds2-admin/role_list.html
blob: a608a0dbb664b55942c8578444083c69dbf91c80 (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
<div id="page-content">
	<div>
		<h1 class="heading-page" id="Roles">Roles</h1>
	</div>

	<div>
		 <button type="submit" onClick="window.location='admin#/role/0';" class="btn btn-alt btn-small">Add New Role</button>
	</div>
	<h2 class="heading-small">Click on a Role to view its details.</h2>
		
	<table class="striped" ng-if="availableRoleFunctions" style="width: auto;">
				<thead> 
					<tr>
						<th>Name</th>
						<th>Priority</th>
						<th>Edit</th>
						<th>Active?</th>
						<th>Delete?</th>
					</tr>
				</thead>
				<tbody type="body" ng-repeat="availableRole in  ociavailableRoles">
					<tr>
						<td>{{ availableRole.name }}</td>
						<td>{{ availableRole.priority }}</td>
						<td>
							<a href="admin#/role/{{availableRole.id}}" class="icon-misc-pen"></a>
						</td>
						<td>
					    	<div >
					    		<label class="btn-switch-label" tabindex="0" role="option">
									<input type="checkbox" b2b-switches ng-model="availableRole.active" ng-click="activateRoleConfirmPopUp(availableRole.active,availableRole);" >
							    </label> 
					    	</div>
				    	</td>
				    	<td width="10%">
				    		<div ng-click="delRoleConfirmPopUp(availableRole);"><a href="javascript:void(0)" class="icon-misc-trash"></a></div>
				     	</td>
					</tr>
				</tbody>
			</table>
			
</div>