a608a0dbb664b55942c8578444083c69dbf91c80
[portal/sdk.git] /
1 <div id="page-content">
2         <div>
3                 <h1 class="heading-page" id="Roles">Roles</h1>
4         </div>
5
6         <div>
7                  <button type="submit" onClick="window.location='admin#/role/0';" class="btn btn-alt btn-small">Add New Role</button>
8         </div>
9         <h2 class="heading-small">Click on a Role to view its details.</h2>
10                 
11         <table class="striped" ng-if="availableRoleFunctions" style="width: auto;">
12                                 <thead> 
13                                         <tr>
14                                                 <th>Name</th>
15                                                 <th>Priority</th>
16                                                 <th>Edit</th>
17                                                 <th>Active?</th>
18                                                 <th>Delete?</th>
19                                         </tr>
20                                 </thead>
21                                 <tbody type="body" ng-repeat="availableRole in  ociavailableRoles">
22                                         <tr>
23                                                 <td>{{ availableRole.name }}</td>
24                                                 <td>{{ availableRole.priority }}</td>
25                                                 <td>
26                                                         <a href="admin#/role/{{availableRole.id}}" class="icon-misc-pen"></a>
27                                                 </td>
28                                                 <td>
29                                                 <div >
30                                                         <label class="btn-switch-label" tabindex="0" role="option">
31                                                                         <input type="checkbox" b2b-switches ng-model="availableRole.active" ng-click="activateRoleConfirmPopUp(availableRole.active,availableRole);" >
32                                                             </label> 
33                                                 </div>
34                                         </td>
35                                         <td width="10%">
36                                                 <div ng-click="delRoleConfirmPopUp(availableRole);"><a href="javascript:void(0)" class="icon-misc-trash"></a></div>
37                                         </td>
38                                         </tr>
39                                 </tbody>
40                         </table>
41                         
42 </div>