2015-06-27 22:35:34 +02:00
|
|
|
## -*- coding: utf-8 -*-
|
2015-06-18 23:43:58 +02:00
|
|
|
<%inherit file="navbar.tmpl"/>
|
|
|
|
<%block name="core">
|
|
|
|
<div class="row clearfix top-buffer bottom-buffer">
|
|
|
|
<div class="col-md-2 column">
|
|
|
|
</div>
|
|
|
|
<div class="col-md-12 column">
|
|
|
|
<div class="well well-sm">
|
2019-07-10 11:40:29 +02:00
|
|
|
<form method='POST' action='./modify' role="form" class="form-signin" id="form">
|
2015-06-24 00:58:32 +02:00
|
|
|
<fieldset>
|
|
|
|
<legend>Modify user's attributes:</legend>
|
2019-01-02 21:31:10 +01:00
|
|
|
${form | n}
|
2015-06-24 00:58:32 +02:00
|
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
|
|
<legend>Enable/Disable user's roles:</legend>
|
2019-01-02 21:31:10 +01:00
|
|
|
${roles | n}
|
2015-06-24 00:58:32 +02:00
|
|
|
</fieldset>
|
2015-06-19 22:15:37 +02:00
|
|
|
% if len(standalone_groups) != 0:
|
2015-06-24 00:58:32 +02:00
|
|
|
<fieldset>
|
|
|
|
<legend>Delete user's individual groups:</legend>
|
2015-06-19 22:15:37 +02:00
|
|
|
<table id="RecordTable" class="table table-hover table-condensed tablesorter">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="sorter-false">
|
|
|
|
Backend
|
|
|
|
</th>
|
|
|
|
<th class="sorter-false">
|
|
|
|
Group
|
|
|
|
</th>
|
|
|
|
<th class="sorter-false">
|
|
|
|
Enable/Disable
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
% for backend in standalone_groups:
|
|
|
|
% for group in standalone_groups[backend]:
|
|
|
|
<tr>
|
|
|
|
<td>
|
2015-07-31 20:08:21 +02:00
|
|
|
${backends_display_names[backend]}
|
2015-06-19 22:15:37 +02:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
${group}
|
|
|
|
</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"
|
2015-06-24 00:46:10 +02:00
|
|
|
name="group.${backend}.${group}" data-size="mini" id="group.${backend}.${group}" checked>
|
|
|
|
<script>$("[name='group.${backend}.${group}']").bootstrapSwitch();</script>
|
2015-06-19 22:15:37 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
% endfor
|
|
|
|
% endfor
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2015-06-24 00:58:32 +02:00
|
|
|
</fieldset>
|
2015-06-19 22:15:37 +02:00
|
|
|
% endif
|
2015-06-18 23:43:58 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="input-group">
|
|
|
|
<button class="btn btn-default blue" type="submit">
|
2015-07-05 17:50:42 +02:00
|
|
|
<span class="glyphicon glyphicon-cog"></span> Modify User</button>
|
2015-06-18 23:43:58 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
2019-07-10 11:40:29 +02:00
|
|
|
<script type="text/javascript" src="./static/js/ppolicy.js"></script>
|
2015-06-18 23:43:58 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-2 column">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</%block>
|