blob: 1c484dbc37f6b66d7b38ff58acdd3d4e6193d281 (
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 %}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
-->
|