summaryrefslogtreecommitdiffstats
path: root/custodia_pwmgr/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'custodia_pwmgr/templates/index.html')
-rw-r--r--custodia_pwmgr/templates/index.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/custodia_pwmgr/templates/index.html b/custodia_pwmgr/templates/index.html
new file mode 100644
index 0000000..e37ed82
--- /dev/null
+++ b/custodia_pwmgr/templates/index.html
@@ -0,0 +1,28 @@
+{% extends "canvas.html" %}
+{% block body %}
+<h2>Password Manager Example</h2>
+<h3>Passwords</h3>
+<ul class="entries">
+{% for item in items %}
+ <li>{{ item }}
+ <form action="{{ url_for('delete_password') }}" method="post">
+ <input type="hidden" name="name" value="{{ item }}" />
+ <input type="submit" value="Delete">
+ </form>
+ </li>
+{% else %}
+ <li>No passwords</li>
+{% endfor %}
+</ul>
+
+<h3>Add Password</h3>
+<form action="{{ url_for('add_password') }}" method="post">
+<dl>
+ <dt>Name:
+ <dd><input type="text" name="name">
+ <dt>Password:
+ <dd><input type="text" name="password">
+ <dd><input type="submit" value="Submit">
+</dl>
+</form>
+{% endblock %}