diff options
Diffstat (limited to 'templates/settings.htm')
| -rw-r--r-- | templates/settings.htm | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/templates/settings.htm b/templates/settings.htm new file mode 100644 index 0000000..5b53a64 --- /dev/null +++ b/templates/settings.htm @@ -0,0 +1,31 @@ +{% extends "base.htm" %} + +{% block title %}Settings{% endblock %} + +{% block content %} +<h1>User Settings</h1> + +<h2>Change Password</h2> +<a class="button" href="/transactions">Go Back</a> + +{% match result %} + {% when PasswordResult::Success %} + <div class="success">Password change was successful</div> + {% when PasswordResult::InvalidOld -%} + <div class="error">Old password was incorrect</div> + {% when PasswordResult::Missmatch -%} + <div class="error">New passwords were not the same</div> + {% when PasswordResult::Empty -%} +{% endmatch %} + +<form class="fixed-form highlight-bg" action="/reset-password" method="POST"> + <input type="password" placeholder="Enter Old Password" name="old-password" required> + <input type="password" placeholder="Enter New Password" name="new-password" required> + <input type="password" placeholder="Re-Enter New Password" name="confirm-password" required> + + <button type="submit">Confirm</button> +</form> +{% endblock %} + +<!-- vim: expandtab sw=2 ts=2 +--> |
