diff options
author | Aaron Williamson <aaron@copiesofcopies.org> | 2013-03-06 09:37:45 -0500 |
---|---|---|
committer | Aaron Williamson <aaron@copiesofcopies.org> | 2013-03-06 09:37:45 -0500 |
commit | 7b0d82539e2d8a451b8ea9ee54baab0f308a4d8a (patch) | |
tree | 677e5e8f5ec032f9403175b1bc78f378bd0d2d5c /mustash/templates | |
parent | 673b5ffc0f4fe267901d2acef5212bc158b7885e (diff) |
Added license notices, rebranded.
Diffstat (limited to 'mustash/templates')
-rw-r--r-- | mustash/templates/admin_users.html | 32 | ||||
-rw-r--r-- | mustash/templates/base.html | 55 | ||||
-rw-r--r-- | mustash/templates/folder_edit.html | 12 | ||||
-rw-r--r-- | mustash/templates/index.html | 40 | ||||
-rw-r--r-- | mustash/templates/user_edit.html | 10 |
5 files changed, 149 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> diff --git a/mustash/templates/base.html b/mustash/templates/base.html new file mode 100644 index 0000000..b73af89 --- /dev/null +++ b/mustash/templates/base.html @@ -0,0 +1,55 @@ +$def with (page) + +<!DOCTYPE html> +<html lang="en"> +<head> + <title>μstash</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link href="/static/css/bootstrap.min.css" rel="stylesheet" media="screen"> + <link href="/static/css/bootstrap-responsive.css" rel="stylesheet"> + <link href="/static/css/stashbox.css" rel="stylesheet"> +</head> +<body> + + <div class="navbar navbar-inverse navbar-fixed-top"> + <div class="navbar-inner"> + <div class="container-fluid"> + <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a class="brand" href="/">μstash</a> + <div class="nav-collapse collapse"> + <ul class="nav nav-tabs"> + <li><a href="/admin/users/">Users Admin</a></li> + </ul> + </div><!--/.nav-collapse --> + </div> + </div> + </div> + + <div class="container-fluid"> + + $if context['messages']: + <div id="messageBox" class="row-fluid"> + <div class="span9"> + $for message in context['messages']: + <div class="alert"> + <button type="button" class="close" data-dismiss="alert">×</button> + $message + </div> + </div> + $ context['messages'] = [] + </div> + + <div class="row-fluid"> + $:page + </div> + + </div> <!-- /container --> + + <script src="http://code.jquery.com/jquery.js"></script> + <script src="/static/js/bootstrap.min.js"></script> +</body> +</html> diff --git a/mustash/templates/folder_edit.html b/mustash/templates/folder_edit.html new file mode 100644 index 0000000..997cb8b --- /dev/null +++ b/mustash/templates/folder_edit.html @@ -0,0 +1,12 @@ +$def with (users, form_update) + +<div class="span4"> + <header> + <h2>Update folder</h2> + </header> + + <form action="" method="post"> + $:form_update.render_css() + </form> + +</div> 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> diff --git a/mustash/templates/user_edit.html b/mustash/templates/user_edit.html new file mode 100644 index 0000000..da41862 --- /dev/null +++ b/mustash/templates/user_edit.html @@ -0,0 +1,10 @@ +$def with (form) + +<div class="span4"> + <h2>Edit user</h2> + + <form action="" method="post"> + $:form.render_css() + </form> + +</div> |