summaryrefslogtreecommitdiff
path: root/mustash/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'mustash/templates/index.html')
-rw-r--r--mustash/templates/index.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/mustash/templates/index.html b/mustash/templates/index.html
new file mode 100644
index 0000000..e219959
--- /dev/null
+++ b/mustash/templates/index.html
@@ -0,0 +1,40 @@
+$def with (folders, form)
+
+<div class="span8">
+ <header>
+ <h2>Existing folders</h2>
+ </header>
+
+ <table class="table">
+ <tr>
+ <th>Folder</th>
+ <th>Owner</th>
+ <th>Users</th>
+ <th></th>
+ </tr>
+ $for folder in folders:
+ <tr>
+ <td><a href="/folder/$folder['id']/edit/">$folder['name']</a></td>
+ <td>$folder['owner']</td>
+ <td>
+ ${", ".join(folder['users'])}
+ </td>
+ <td>
+ $ folder_id = folder['id']
+ <form id="delete_folder_$folder_id" action="/folder/$folder_id/delete/" method="POST">
+ <input type="submit" class="btn" value="Delete" />
+ </form>
+ </td>
+ </tr>
+ </table>
+</div>
+
+<div class="span4">
+ <header>
+ <h2>Add a folder</h2>
+ </header>
+
+ <form id="add_folder" action="" method="POST">
+ $:form.render_css()
+ </form>
+</div>