mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-25 18:54:29 +01:00
adding templates for search user
This commit is contained in:
parent
557dc23c28
commit
5b5140fa1e
73
resources/templates/searchadmin.tmpl
Normal file
73
resources/templates/searchadmin.tmpl
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
<%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>
|
||||||
|
<th>
|
||||||
|
User
|
||||||
|
</th>
|
||||||
|
<th class="sorter-false">
|
||||||
|
Modify
|
||||||
|
</th>
|
||||||
|
<th class="sorter-false">
|
||||||
|
Delete
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
%for user in searchresult:
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
${user}
|
||||||
|
</td>
|
||||||
|
<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>
|
||||||
|
<th>
|
||||||
|
User
|
||||||
|
</th>
|
||||||
|
<th class="sorter-false">
|
||||||
|
Modify
|
||||||
|
</th>
|
||||||
|
<th class="sorter-false">
|
||||||
|
Delete
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</%block>
|
15
resources/templates/searchuser.tmpl
Normal file
15
resources/templates/searchuser.tmpl
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<%inherit file="navbar.tmpl"/>
|
||||||
|
<%block name="core">
|
||||||
|
<div class="row clearfix" style="margin-top:30px">
|
||||||
|
<div class="col-md-4 column"></div>
|
||||||
|
<div class="col-md-4 column well">
|
||||||
|
<form method='POST' action='/searchadmin' class="navbar-form navbar-right" role="search">
|
||||||
|
<div class="form-group">
|
||||||
|
<input type="text" class="form-control" name="searchstring" placeholder="Search User">
|
||||||
|
</div>
|
||||||
|
<button type="submit" class="btn btn-default">Submit</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 column"></div>
|
||||||
|
</div>
|
||||||
|
</%block>
|
Loading…
Reference in New Issue
Block a user