Skip to content
Permalink
Browse files

Make policies sortable.

  • Loading branch information...
NuvandaPV committed Oct 28, 2019
1 parent 20cb795 commit f68d4127f83258a761caeca8bca312acbcc85b7e
Showing with 13 additions and 5 deletions.
  1. +13 −5 privacyidea/static/components/config/views/config.policies.list.html
@@ -2,10 +2,18 @@
<table class="table table-bordered table-responsive table-striped">
<thead>
<tr>
<th translate>Priority</th>
<th translate>Active</th>
<th translate>Policy Name</th>
<th translate>Scope</th>
<th>
<button class="btn btn-default unsorted" pi-sort-by="priority" translate>Priority</button>
</th>
<th>
<button class="btn btn-default unsorted" pi-sort-by="active" translate>Active</button>
</th>
<th>
<button class="btn btn-default unsorted" pi-sort-by="name" translate>Policy Name</button>
</th>
<th>
<button class="btn btn-default unsorted" pi-sort-by="scope" translate>Scope</button>
</th>
<th translate>Action</th>
<th translate>Realm</th>
<th translate>User</th>
@@ -14,7 +22,7 @@
</tr>
</thead>
<tbody>
<tr ng-repeat="policy in policies">
<tr ng-repeat="policy in policies | orderBy:sortby:reverse">
<td>
<input type="number" ng-model="policy.priority"
class="form-control" min="1"

0 comments on commit f68d412

Please sign in to comment.
You can’t perform that action at this time.