diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/__init__.py | 1 | ||||
-rw-r--r-- | templates/base.tmpl | 2 | ||||
-rw-r--r-- | templates/changepass.tmpl | 16 |
3 files changed, 18 insertions, 1 deletions
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 @@ </div> <p class="login">#slurp #if $user -Logged in as $user.username.#slurp +Logged in as $user.username. <a href="${root}c">Change password</a>#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 '' + <div class="error">$error</div> + <form method="post" action="${root}c"> + <p>current password</p> + <p><input type="password" id="oldpass" name="oldpass" /></p> + <p>new password</p> + <p><input type="password" id="password" name="password" /></p> + <p>repeat new password</p> + <p><input type="password" id="password2" name="password2" /></p> + <p><input type="submit" value="Login" /></p> + </form> +#end def |