From ee596b2b55afa08f386ac4992ff3019250920ccf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sat, 19 Oct 2013 15:33:16 +0200 Subject: 'Change password' support --- templates/menu.jinja | 5 ++++- templates/user/cpw.jinja | 13 +++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 templates/user/cpw.jinja (limited to 'templates') 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 %} +
+ {{ render_form(form, old = {'autofocus' : True}) }} + +
+{% endblock %} -- cgit v1.2.3