Commit f733f18a authored by eskumon's avatar eskumon
Browse files

wip(frontend): user-friendly interface for users page

issue #1149
parent 7ead6d59
...@@ -11,17 +11,18 @@ ...@@ -11,17 +11,18 @@
<h2 class="display-5"><%=l 'Users' %></h2> <h2 class="display-5"><%=l 'Users' %></h2>
<div class="card-title"> <div class="card-title">
<form method="post" action="/admin/users"> <form method="post" action="/admin/users">
<input type="text" name="name" placeholder="<%=l 'Users' %>"> <input type="text" name="name" placeholder="<%=l 'Type a username here' %>">
<input type="submit" value="<%=l 'Search' %>"> <input type="submit" value="<%=l 'Search' %>">
<button type="button" style="float: right; margin: 0 10px;" class="btn btn-success" onclick = "location='/users/register'"><%=l 'Register' %></button> <button type="button" style="float: right; margin: 0 10px;" class="btn btn-success" onclick = "location='/users/register'"><%=l 'New user' %></button>
</form> </form>
</div> </div>
</div> </div>
<div class="card-body"> %if(@$list_users){
<div class="card-body">
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th><%=l 'Name' %></th> <th><%=l 'Username' %></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -33,6 +34,7 @@ ...@@ -33,6 +34,7 @@
</tbody> </tbody>
</table> </table>
</div> </div>
%}
</div> </div>
</div> </div>
</div> </div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment