summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2013-10-19 15:33:16 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2013-10-19 15:39:51 +0200
commitee596b2b55afa08f386ac4992ff3019250920ccf (patch)
tree342d9c0a11039bde64f22d128d36ac06c7b9913d /templates
parentdf2f973109c47faee74d3b889c93bb211e865819 (diff)
downloadkosten-ee596b2b55afa08f386ac4992ff3019250920ccf.tar.gz
kosten-ee596b2b55afa08f386ac4992ff3019250920ccf.tar.bz2
kosten-ee596b2b55afa08f386ac4992ff3019250920ccf.zip
'Change password' support
Diffstat (limited to '')
-rw-r--r--templates/menu.jinja5
-rw-r--r--templates/user/cpw.jinja13
2 files changed, 17 insertions, 1 deletions
diff --git a/templates/menu.jinja b/templates/menu.jinja
index cebe1e5..a4e2b49 100644
--- a/templates/menu.jinja
+++ b/templates/menu.jinja
@@ -6,5 +6,8 @@
]
%}
{% if current_user.is_authenticated() %}
- {% set menu = menu + [("user.logout", "Logout")] %}
+ {% set menu = menu + [
+ ("user.cpw", "Passwort ändern"),
+ ("user.logout", "Logout")]
+ %}
{% endif %}
diff --git a/templates/user/cpw.jinja b/templates/user/cpw.jinja
new file mode 100644
index 0000000..74d65dc
--- /dev/null
+++ b/templates/user/cpw.jinja
@@ -0,0 +1,13 @@
+{% extends "layout.jinja" %}
+{% from "macros.jinja" import render_form %}
+
+{% block heading %}
+ Passwort ändern
+{% endblock %}
+
+{% block content %}
+ <form name="login" method="post">
+ {{ render_form(form, old = {'autofocus' : True}) }}
+ <input type="submit">
+ </form>
+{% endblock %}