summaryrefslogtreecommitdiff
path: root/mustash/templates/admin_users.html
diff options
context:
space:
mode:
Diffstat (limited to 'mustash/templates/admin_users.html')
-rw-r--r--mustash/templates/admin_users.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/mustash/templates/admin_users.html b/mustash/templates/admin_users.html
new file mode 100644
index 0000000..d51602b
--- /dev/null
+++ b/mustash/templates/admin_users.html
@@ -0,0 +1,32 @@
+$def with (users, form)
+
+<div class="span8">
+ <h2>Users</h2>
+ <table class="table">
+ <tr>
+ <th>User</th>
+ <th>Password</th>
+ <th></th>
+ </tr>
+ $for user in users:
+ <tr>
+ <td><a href="/user/$user.id/edit/">$user.username</a></td>
+ <td>$user.password</td>
+ <td>
+ <form action="/user/$user.id/delete/" method="POST">
+ <input type="submit" class="btn" value="Delete" />
+ </form>
+ </td>
+ </tr>
+ </table>
+
+</div>
+
+<div class="span4">
+ <h2>Add a user</h2>
+
+ <form action="" method="post">
+ $:form.render_css()
+ </form>
+
+</div>