summaryrefslogtreecommitdiff
path: root/talerbank/app/templates
diff options
context:
space:
mode:
authorms <ms@taler.net>2021-06-02 17:31:48 +0200
committerms <ms@taler.net>2021-06-02 17:31:48 +0200
commitdf1a91c06fffe37f9ba99963829b35cfdb874450 (patch)
tree4d549c5ef64d6b60b8e156f7c7fbd1c44fdfa190 /talerbank/app/templates
parent52a82707453275829ab8085ad1b04dc0341acc01 (diff)
downloadbank-df1a91c06fffe37f9ba99963829b35cfdb874450.tar.gz
bank-df1a91c06fffe37f9ba99963829b35cfdb874450.tar.bz2
bank-df1a91c06fffe37f9ba99963829b35cfdb874450.zip
implement wire-transfer form
Diffstat (limited to 'talerbank/app/templates')
-rw-r--r--talerbank/app/templates/payto_wiretransfer.html1
-rw-r--r--talerbank/app/templates/profile_page.html2
-rw-r--r--talerbank/app/templates/wiretransfer.html71
3 files changed, 72 insertions, 2 deletions
diff --git a/talerbank/app/templates/payto_wiretransfer.html b/talerbank/app/templates/payto_wiretransfer.html
index b435248..06a2fd5 100644
--- a/talerbank/app/templates/payto_wiretransfer.html
+++ b/talerbank/app/templates/payto_wiretransfer.html
@@ -59,7 +59,6 @@
type="submit"
value={{ _("Confirm") }} />
</form>
- <p><a href=" {{ url('profile') }}">Cancel</a></p>
</div>
</article>
</section>
diff --git a/talerbank/app/templates/profile_page.html b/talerbank/app/templates/profile_page.html
index b62e4fb..0abecc4 100644
--- a/talerbank/app/templates/profile_page.html
+++ b/talerbank/app/templates/profile_page.html
@@ -75,7 +75,7 @@
</article>
<article>
<h2>{{ _("Transactions for") }} {{ name }}</h2>
- <p><a href={{ url('payto-form') }}>{{_("Transfer money manually") }}</a></p>
+ <p><a href={{ url('wiretransfer-form') }}>{{_("Transfer money manually") }}</a></p>
<div id="transactions-history">
{% if history %}
<table class="pure-table">
diff --git a/talerbank/app/templates/wiretransfer.html b/talerbank/app/templates/wiretransfer.html
new file mode 100644
index 0000000..0813d97
--- /dev/null
+++ b/talerbank/app/templates/wiretransfer.html
@@ -0,0 +1,71 @@
+{% extends "base.html" %}
+{#
+ This file is part of GNU TALER.
+ Copyright (C) 2014, 2015, 2016 Taler Systems SA
+
+ TALER is free software; you can redistribute it and/or modify it under the
+ terms of the GNU Lesser General Public License as published by the Free Software
+ Foundation; either version 2.1, or (at your option) any later version.
+
+ TALER is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+ A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License along with
+ TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
+
+ @author Marcello Stanisci
+ @author Florian Dold <dold@taler.net>
+#}
+
+{% block main %}
+
+<div>
+ <a href="{{ url('logout') }}" class="pure-button">[{{ _("Logout") }}]</a><br>
+</div>
+
+ <section id="main">
+
+ {% if hint != "" %}
+ <article>
+ <div class="notification">
+ {% if not is_success %}
+ <p class="informational informational-fail">
+ {% else %}
+ <p class="informational informational-ok">
+ {% endif %}
+ {{ hint }}
+ </p>
+ </div>
+ </article>
+ {% endif %}
+
+ <article>
+ <div>
+ <h2>{{ _("Wire transfer") }}</h2>
+ <p>{{ _("Transfer money to another account of this bank:") }}
+ <br>
+ <br>
+ </p>
+ <form action="{{ url('wiretransfer-form') }}"
+ method="POST"
+ name="wire-transfer-form">
+ <input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}" />
+ <input name="receiver" placeholder={{ _("receiver") }} />
+ <br>
+ <br>
+ <input name="subject" placeholder={{ _("subject") }} />
+ <br>
+ <br>
+ <input name="amount"
+ placeholder={{ _("amount (CURRENCY:X.YY)") }}
+ pattern="{{ currency }}:[0-9]+(\.[0-9]+)?"/>
+ <br>
+ <br>
+ <input class="pure-button pure-button-primary" type="submit" value={{ _("Confirm") }} />
+ </form>
+ <p><a href="{{ url('payto-form') }}">Want to try the raw payto://-format?</a></p>
+ </div>
+ </article>
+ </section>
+{% endblock %}