summaryrefslogtreecommitdiffstats
path: root/templates/settings.htm
blob: 5b53a64a40dc1627963c735addd4f489958b96a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
-->