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 @@
<h2 class="display-5"><%=l 'Users' %></h2>
<div class="card-title">
<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' %>">
<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>
</div>
</div>
%if(@$list_users){
<div class="card-body">
<table class="table table-striped">
<thead>
<tr>
<th><%=l 'Name' %></th>
<th><%=l 'Username' %></th>
</tr>
</thead>
<tbody>
......@@ -33,6 +34,7 @@
</tbody>
</table>
</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