1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-05 00:58:55 +01:00
ldapcherry/resources/templates/roles.tmpl

46 lines
1.3 KiB
Cheetah
Raw Normal View History

2015-06-10 19:59:35 +02:00
<table id="RecordTable" class="table table-hover table-condensed tablesorter">
<thead>
<tr>
<th>
Role
</th>
2015-06-11 00:33:14 +02:00
<th class="sorter-false">
Description
</th>
2015-06-11 00:11:55 +02:00
<th class="sorter-false">
2015-06-10 19:59:35 +02:00
Parent roles
</th>
<th class="sorter-false">
Enable/Disable
</th>
</tr>
</thead>
<tbody>
%for role in roles:
<tr>
<td>
${roles[role]['display_name']}
</td>
2015-06-11 00:33:14 +02:00
<td>
${roles[role]['description']}
</td>
2015-06-10 19:59:35 +02:00
<td>
<%
sep = ', '
parents_roles = []
for r in graph[role]['parent_roles']:
parents_roles.append(roles[r]['display_name'])
parents = sep.join(parents_roles)
%>
${parents}
</td>
<td>
2015-06-10 22:44:07 +02:00
<input data-on-color="success" data-off-color="danger" data-on-text="Enabled" data-off-text="Disabled" data-handle-width="75" type="checkbox" name="${role}" data-size="mini">
2015-06-10 19:59:35 +02:00
<script>$("[name='${role}']").bootstrapSwitch();</script>
</td>
</tr>
% endfor
</tbody>
</table>