mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-03 03:47:35 +02:00
admin search if admin in navbar
Now LdapCherry Administrator are displayed the searchadmin page (the one displaying the modify and remove buttons) when they use the navbar search.
This commit is contained in:
parent
f863b230dd
commit
37925b196b
1 changed files with 8 additions and 1 deletions
|
@ -13,12 +13,19 @@
|
|||
<a class="navbar-brand" href="/searchadmin">Delete/Modify User</a>
|
||||
% endif
|
||||
</div>
|
||||
|
||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||
<a class="navbar-brand navbar-right" href='/logout'><span class="glyphicon glyphicon-off"></span> Logout</a>
|
||||
% if is_admin:
|
||||
<form method='GET' action='/searchadmin' class="navbar-form navbar-right" role="search" data-toggle="validator">
|
||||
% else:
|
||||
<form method='GET' action='/searchuser' class="navbar-form navbar-right" role="search" data-toggle="validator">
|
||||
% endif
|
||||
<div class="form-group">
|
||||
% if is_admin:
|
||||
<input type="text" class="form-control" name="searchstring" placeholder="Search User">
|
||||
% else:
|
||||
<input type="text" class="form-control" data-minlength="3" name="searchstring" placeholder="Search User" data-error="Too short" required>
|
||||
% endif
|
||||
</div>
|
||||
<button type="submit" class="btn btn-default">Submit</button>
|
||||
</form>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue