-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
51 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,55 @@ | ||
<%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="row clearfix"> | ||
<div class="col-md-12 column"> | ||
<form method='get' action='/searchuser' role="form" class="form-inline"> | ||
<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> | ||
<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> | ||
</form> | ||
</div> | ||
<div class="col-md-4 column"></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> | ||
%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> | ||
</div> | ||
</%block> |