summaryrefslogtreecommitdiff
path: root/stashbox/templates
diff options
context:
space:
mode:
authorAaron Williamson <aaron@copiesofcopies.org>2011-07-01 14:47:02 -0400
committerAaron Williamson <aaron@copiesofcopies.org>2011-07-01 14:47:02 -0400
commitefc395dfbec772d09703b4cfbeead17c3f38a2cb (patch)
tree19724ddd2ba2dd8de2b389a14da4f90eb23f09a8 /stashbox/templates
parent20a15553fa0fa4138c468d2892cd07d6baa061d2 (diff)
Added interface code
Diffstat (limited to 'stashbox/templates')
-rw-r--r--stashbox/templates/base.html14
-rw-r--r--stashbox/templates/index.html37
-rw-r--r--stashbox/templates/useradd.html25
-rw-r--r--stashbox/templates/usersadmin.html25
4 files changed, 101 insertions, 0 deletions
diff --git a/stashbox/templates/base.html b/stashbox/templates/base.html
new file mode 100644
index 0000000..7171658
--- /dev/null
+++ b/stashbox/templates/base.html
@@ -0,0 +1,14 @@
+$def with (page)
+
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <title>Shareguard</title>
+ <link rel="stylesheet" type="text/css" href="/static/main.css" />
+</head>
+<body>
+
+$:page
+
+</body>
+</html>
diff --git a/stashbox/templates/index.html b/stashbox/templates/index.html
new file mode 100644
index 0000000..9c59de9
--- /dev/null
+++ b/stashbox/templates/index.html
@@ -0,0 +1,37 @@
+$def with (boxes, form)
+
+<div class="main">
+ <header>
+ <h1>Existing folders</h1>
+ </header>
+
+ <form action="" method="post">
+
+ <table class="itemlist">
+ <tr>
+ <th>Folder</th>
+ <th>Owner</th>
+ <th>Users</th>
+ </tr>
+ $for box in boxes:
+ <tr>
+ <td><a href="/admin/folder/$box['id']/">$box['name']</a></td>
+ <td>$box['owner']</td>
+ <td>
+ ${", ".join(box['users'])}
+ </td>
+ </tr>
+ </table>
+
+</div>
+
+<div class="right">
+ <header>
+ <h1>Add a folder</h1>
+ </header>
+
+ <form action="" method="post">
+ $:form.render()
+ </form>
+
+</div>
diff --git a/stashbox/templates/useradd.html b/stashbox/templates/useradd.html
new file mode 100644
index 0000000..a916386
--- /dev/null
+++ b/stashbox/templates/useradd.html
@@ -0,0 +1,25 @@
+$def with (users, form)
+
+<div class="main">
+
+ <table class="itemlist">
+ <tr>
+ <th>User</th>
+ <th>Password</th>
+ </tr>
+ $for user in users:
+ <tr>
+ <td>$user.username</td>
+ <td>$user.password</td>
+ </tr>
+ </table>
+
+</div>
+
+<div class="right">
+
+ <form action="" method="post">
+ $:form.render()
+ </form>
+
+</div>
diff --git a/stashbox/templates/usersadmin.html b/stashbox/templates/usersadmin.html
new file mode 100644
index 0000000..a916386
--- /dev/null
+++ b/stashbox/templates/usersadmin.html
@@ -0,0 +1,25 @@
+$def with (users, form)
+
+<div class="main">
+
+ <table class="itemlist">
+ <tr>
+ <th>User</th>
+ <th>Password</th>
+ </tr>
+ $for user in users:
+ <tr>
+ <td>$user.username</td>
+ <td>$user.password</td>
+ </tr>
+ </table>
+
+</div>
+
+<div class="right">
+
+ <form action="" method="post">
+ $:form.render()
+ </form>
+
+</div>