Add support for Find Roles by Permission X feature

This commit is contained in:
Lance Edgar 2017-02-06 13:37:42 -06:00
parent dd5162c151
commit cab339e367
8 changed files with 221 additions and 134 deletions

View 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()}