From 97835ef689b538cb3e4bee294bd0fb2b3f0a9df2 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 27 Aug 2019 03:56:54 +0200 Subject: implement new withdraw API and support taler://withdraw --- talerbank/app/templates/pin_tan.html | 54 ------------------- talerbank/app/templates/profile_page.html | 18 ++----- talerbank/app/templates/withdraw_confirm.html | 53 +++++++++++++++++++ talerbank/app/templates/withdraw_show.html | 76 +++++++++++++++++++++++++++ 4 files changed, 132 insertions(+), 69 deletions(-) delete mode 100644 talerbank/app/templates/pin_tan.html create mode 100644 talerbank/app/templates/withdraw_confirm.html create mode 100644 talerbank/app/templates/withdraw_show.html (limited to 'talerbank/app/templates') diff --git a/talerbank/app/templates/pin_tan.html b/talerbank/app/templates/pin_tan.html deleted file mode 100644 index 746f889..0000000 --- a/talerbank/app/templates/pin_tan.html +++ /dev/null @@ -1,54 +0,0 @@ - - - -{% extends "base.html" %} - -{% block headermsg %} -

PIN/TAN: Confirm transaction

-{% endblock %} - -{% block content %} - {% if fail_message %} -

- {{ hint }} -

- {% endif %} -

- {{ settings_value("TALER_CURRENCY") }} Bank needs to verify that you - intend to withdraw {{ amount }} from - {{ exchange }}. - To prove that you are the account owner, please answer the - following "security question" (*): -

-

- What is {{ question }} ? -

-
- - - - - -
- (*) A real bank should ask for - a PIN/TAN instead of a simple calculation. For example by sending - a one time password to the customer's mobile or providing her a - random password generator. - -{% endblock content %} diff --git a/talerbank/app/templates/profile_page.html b/talerbank/app/templates/profile_page.html index abbb784..61fcd61 100644 --- a/talerbank/app/templates/profile_page.html +++ b/talerbank/app/templates/profile_page.html @@ -17,18 +17,6 @@ @author Marcello Stanisci #} -{% block head %} - - - - {% if withdraw and withdraw == "success" %} - - {% endif %} - {% if suggested_exchange %} - - {% endif %} - -{% endblock head %} {% block headermsg %}

Welcome {{ name }}!

@@ -64,11 +52,11 @@
-

Withdraw digital coins using Taler

+

Withdraw Money into a Taler wallet

@@ -84,7 +72,7 @@ + value="Start withdrawal" />

Wire transfer

+ + +{% extends "base.html" %} + +{% block headermsg %} +

Confirm Withdrawal

+{% endblock %} + +{% block content %} + {% if fail_message %} +

+ {{ hint }} +

+ {% endif %} +

+ {{ settings_value("TALER_CURRENCY") }} Bank needs to verify that you + intend to withdraw {{ amount }} from {{ exchange }}. + To prove that you are the account owner, please answer the + following "security question" (*): +

+

+ What is {{ question }} ? +

+ + + + + + +
+ (*) A real bank should ask for + a PIN/TAN instead of a simple calculation. For example by sending + a one time password to the customer's mobile or providing her a + random password generator. + +{% endblock content %} diff --git a/talerbank/app/templates/withdraw_show.html b/talerbank/app/templates/withdraw_show.html new file mode 100644 index 0000000..3c66732 --- /dev/null +++ b/talerbank/app/templates/withdraw_show.html @@ -0,0 +1,76 @@ + + +{% extends "base.html" %} + +{% block headermsg %} +

Withdraw to a Taler Wallet

+{% endblock %} + +{% block head %} + +{% endblock head %} + +{% block content %} +
+

+ Looks like your browser doesn't support GNU Taler payments. You can try + installing a wallet browser extension. +

+
+ +

+ You can use this QR code to withdraw to your mobile wallet: +

+{{ qrcode_svg | safe }} +

+ Click this link to open your system's Taler wallet if it exists. +

+ + +{% endblock content %} \ No newline at end of file -- cgit v1.2.3