diff options
| author | Jokler <jokler@protonmail.com> | 2020-06-21 06:37:46 +0200 |
|---|---|---|
| committer | Jokler <jokler@protonmail.com> | 2020-06-21 06:37:46 +0200 |
| commit | e6468b012d5b33dd16992652da57f11dd5a6e82f (patch) | |
| tree | e89add440df79d4036b9b44d8c77ee6d69e67201 /templates/transfer.htm | |
| download | joklerpoints-master.tar.gz joklerpoints-master.zip | |
Diffstat (limited to 'templates/transfer.htm')
| -rw-r--r-- | templates/transfer.htm | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/templates/transfer.htm b/templates/transfer.htm new file mode 100644 index 0000000..1c484db --- /dev/null +++ b/templates/transfer.htm @@ -0,0 +1,31 @@ +{% extends "base.htm" %} + +{% block title %}Transfer Points{% endblock %} + +{% block content %} +<h1>Transfer Points</h1> +<h2>{{ balance|fmt_points }}</h2> +<a class="button" href="/transactions">Go Back</a> + +{% match error %} + {% when TransferResult::ZeroPoints %} + <div class="error">You have to send at least 1 JKP</div> + {% when TransferResult::SelfSend %} + <div class="error">You can not send points to yourself</div> + {% when TransferResult::TransferError %} + <div class="error">An error occured during the transfer</div> + {% when TransferResult::Empty %} +{% endmatch %} + +<form class="fixed-form" action="/transfer" method="POST"> + <input type="text" placeholder="Enter Receiver" name="recipient" value="{{ recipient }}" required> + <input type="text" placeholder="Enter Amount" name="amount" + {% if amount != 0 %} value="{{ amount }}" {% endif %} required> + <input type="text" placeholder="Enter Purpose" name="purpose" value="{{ purpose }}" required> + + <button type="submit">Doomp eet</button> +</form> +{% endblock %} + +<!-- vim: expandtab sw=2 ts=2 +--> |
