1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-13 04:58:52 +01:00
ldapcherry/resources/templates/searchuser.tmpl

56 lines
2.3 KiB
Cheetah
Raw Normal View History

2015-05-31 17:43:39 +02:00
<%inherit file="navbar.tmpl"/>
<%block name="core">
2015-05-31 19:46:50 +02:00
<div class="row clearfix">
<div class="col-md-12 column">
<form method='get' action='/searchuser' role="form" class="form-inline">
2015-05-31 17:43:39 +02:00
<div class="form-group">
2015-05-31 19:46:50 +02:00
<label for="searchstring">Search user</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>
2015-05-31 17:43:39 +02:00
</form>
</div>
2015-05-31 19:46:50 +02:00
</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>
%for attr in attrs_list:
<th>
${attrs_list[attr]}
</th>
% endfor
</tr>
</thead>
<tbody>
%for user in searchresult:
<tr>
%for attr in attrs_list:
<td>
% if attr in searchresult[user]:
${searchresult[user][attr]}
% endif
</td>
% endfor
</tr>
% endfor
</tbody>
<tr>
%for attr in attrs_list:
<th>
${attrs_list[attr]}
</th>
% endfor
</tr>
</table>
</div>
</div>
2015-05-31 17:43:39 +02:00
</div>
</%block>