Add support for Find Roles by Permission X feature
This commit is contained in:
parent
dd5162c151
commit
cab339e367
8 changed files with 221 additions and 134 deletions
21
tailbone/templates/roles/find_by_perm.mako
Normal file
21
tailbone/templates/roles/find_by_perm.mako
Normal file
|
@ -0,0 +1,21 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%inherit file="/principal/find_by_perm.mako" />
|
||||
|
||||
<%def name="principal_table()">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
% for role in principals:
|
||||
<tr>
|
||||
<td>${h.link_to(role.name, url('roles.view', uuid=role.uuid))}</td>
|
||||
</tr>
|
||||
% endfor
|
||||
</tbody>
|
||||
</table>
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
Loading…
Add table
Add a link
Reference in a new issue