diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/menu.jinja | 5 | ||||
-rw-r--r-- | templates/user/cpw.jinja | 13 |
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 %} |