mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 09:24:21 +01:00
40 lines
1.1 KiB
Cheetah
40 lines
1.1 KiB
Cheetah
<table id="RecordTable" class="table table-hover table-condensed tablesorter">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Role
|
|
</th>
|
|
<th>
|
|
Parent roles
|
|
</th>
|
|
<th class="sorter-false">
|
|
Enable/Disable
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
%for role in roles:
|
|
<tr>
|
|
<td>
|
|
${roles[role]['display_name']}
|
|
</td>
|
|
<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>
|
|
<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">
|
|
<script>$("[name='${role}']").bootstrapSwitch();</script>
|
|
</td>
|
|
</tr>
|
|
% endfor
|
|
</tbody>
|
|
</table>
|
|
|