From f1bcac65a68e67bff8322e238d9e5e39d3227e5f Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 12 Nov 2011 21:13:47 +0100 Subject: Added a change password option when logged in. --- templates/__init__.py | 1 + templates/base.tmpl | 2 +- templates/changepass.tmpl | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 templates/changepass.tmpl (limited to 'templates') diff --git a/templates/__init__.py b/templates/__init__.py index 3f11c65..5c9f28e 100644 --- a/templates/__init__.py +++ b/templates/__init__.py @@ -5,3 +5,4 @@ from login import login from my import my from images import images from register import register +from changepass import changepass diff --git a/templates/base.tmpl b/templates/base.tmpl index 6c1cb4f..d9d9ab1 100644 --- a/templates/base.tmpl +++ b/templates/base.tmpl @@ -29,7 +29,7 @@

#slurp #if $user -Logged in as $user.username.#slurp +Logged in as $user.username. Change password#slurp #else Not logged in.#slurp #end if diff --git a/templates/changepass.tmpl b/templates/changepass.tmpl new file mode 100644 index 0000000..4171f36 --- /dev/null +++ b/templates/changepass.tmpl @@ -0,0 +1,16 @@ +#def title: changepass +#def header: changepass +#extends templates.base +#def content +#set error = $error or '' +

$error
+
+

current password

+

+

new password

+

+

repeat new password

+

+

+
+#end def -- cgit v1.2.3