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