1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-06-04 01:58:04 +02:00
ldapcherry/resources/templates/searchadmin.tmpl

82 lines
3.5 KiB
Cheetah
Raw Normal View History

2015-05-31 17:43:39 +02:00
<%inherit file="navbar.tmpl"/>
<%block name="core">
<div class="row clearfix">
<div class="col-md-12 column">
<form method='get' action='/searchadmin' role="form" class="form-inline">
<div class="form-group">
<label for="searchstring">Search user to modify/delete</label>
<input type="text" class="form-control" name="searchstring" placeholder="Search User">
</div>
<div class="form-group">
<label for="submit">Submit</label>
<button type="submit" class="form-control btn btn-default green">
<span class="glyphicon glyphicon-search"></span> Search</button>
</div>
</form>
</div>
</div>
<div class="row clearfix top-buffer bottom-buffer">
<div class="col-md-12 column">
<div class="well well-sm">
<table id="RecordTable" class="table table-hover table-condensed tablesorter">
<thead>
<tr>
2015-05-31 19:38:31 +02:00
%for attr in attrs_list:
2015-05-31 17:43:39 +02:00
<th>
2015-05-31 19:38:31 +02:00
${attrs_list[attr]}
2015-05-31 17:43:39 +02:00
</th>
2015-05-31 19:38:31 +02:00
% endfor
2015-05-31 17:43:39 +02:00
<th class="sorter-false">
Modify
</th>
<th class="sorter-false">
Delete
</th>
</tr>
</thead>
<tbody>
%for user in searchresult:
<tr>
2015-05-31 19:38:31 +02:00
%for attr in attrs_list:
2015-05-31 17:43:39 +02:00
<td>
2015-05-31 19:38:31 +02:00
% if attr in searchresult[user]:
${searchresult[user][attr]}
% endif
2015-05-31 17:43:39 +02:00
</td>
2015-05-31 19:38:31 +02:00
% endfor
2015-05-31 17:43:39 +02:00
<td>
<a href="/modify?user=${user}">
<button type="submit" class="btn btn-xs blue">
<span class="glyphicon glyphicon-cog"></span> Modify</button>
</a>
</td>
<td>
<a href="/delete?user=${user}">
<button type="submit" class="btn btn-xs red">
<span class="glyphicon glyphicon-remove-sign"></span> Delete</button>
</a>
</td>
</tr>
% endfor
</tbody>
<tr>
2015-05-31 19:38:31 +02:00
%for attr in attrs_list:
2015-05-31 17:43:39 +02:00
<th>
2015-05-31 19:38:31 +02:00
${attrs_list[attr]}
2015-05-31 17:43:39 +02:00
</th>
2015-05-31 19:38:31 +02:00
% endfor
2015-05-31 17:43:39 +02:00
<th class="sorter-false">
Modify
</th>
<th class="sorter-false">
Delete
</th>
</tr>
</table>
</div>
</div>
</div>
</%block>