From 3ca29bf465d0419c0915924910b4e81a73ec8cef Mon Sep 17 00:00:00 2001 From: MS Date: Wed, 22 Jul 2020 16:11:30 +0200 Subject: import static files --- talermerchantdemos/donations/templates/base.html | 55 +++++++++++++++++ .../donations/templates/checkout.html | 59 ++++++++++++++++++ talermerchantdemos/donations/templates/error.html | 22 +++++++ .../donations/templates/fulfillment.html | 11 ++++ talermerchantdemos/donations/templates/index.html | 42 +++++++++++++ .../donations/templates/javascript.html | 31 ++++++++++ .../templates/provider-not-supported.html | 6 ++ .../donations/templates/request_payment.html | 69 ++++++++++++++++++++++ 8 files changed, 295 insertions(+) create mode 100644 talermerchantdemos/donations/templates/base.html create mode 100644 talermerchantdemos/donations/templates/checkout.html create mode 100644 talermerchantdemos/donations/templates/error.html create mode 100644 talermerchantdemos/donations/templates/fulfillment.html create mode 100644 talermerchantdemos/donations/templates/index.html create mode 100644 talermerchantdemos/donations/templates/javascript.html create mode 100644 talermerchantdemos/donations/templates/provider-not-supported.html create mode 100644 talermerchantdemos/donations/templates/request_payment.html (limited to 'talermerchantdemos/donations/templates') diff --git a/talermerchantdemos/donations/templates/base.html b/talermerchantdemos/donations/templates/base.html new file mode 100644 index 0000000..86f81a9 --- /dev/null +++ b/talermerchantdemos/donations/templates/base.html @@ -0,0 +1,55 @@ + + + + + + Taler Donation Demo + + + + {% block styles %}{% endblock %} + {% block scripts %}{% endblock %} + + + +
+

Taler Demo

+

Donations

+

This is the donation page, you can make donations (with an imaginary currency for now) to free software projects.

+ +

You can learn more about Taler on our main website.

+
+ +
+ {% block main %} + This is the main content of the page. + {% endblock %} +
+ +
+ + diff --git a/talermerchantdemos/donations/templates/checkout.html b/talermerchantdemos/donations/templates/checkout.html new file mode 100644 index 0000000..5c3e116 --- /dev/null +++ b/talermerchantdemos/donations/templates/checkout.html @@ -0,0 +1,59 @@ +{% extends "templates/base.html" %} + +{% block main %} +
+

Select your payment method

+ +

+ This is an example for a "checkout" page of a Web shop. + On the previous page, you have created the shopping cart + and decided which product to buy (i.e. which project to + donate KUDOS to). Now in this page, you are asked to + select a payment option. As Taler is not yet universally + used, we expect merchants will offer various payment options. +

+

+ The page also demonstrates how to only enable (or show) the Taler + option if Taler is actually supported by the browser. For example, + if you disable the Taler extension now, the Taler payment option + will be disabled in the page. Naturally, you could also trivially + hide the Taler option entirely by changing the visibility instead. +

+

+ Note that you MUST select Taler here for the demo to continue, + as the other payment options are just placeholders and not + really working in the demonstration. Also, it is of course + possible to ask the user to make this choice already on the + previous page (with the shopping cart), we just separated the + two steps to keep each step as simple as possible. +

+ +
+

+ + + + + +
+
+ +
+ +{% endblock main %} diff --git a/talermerchantdemos/donations/templates/error.html b/talermerchantdemos/donations/templates/error.html new file mode 100644 index 0000000..0d4bd02 --- /dev/null +++ b/talermerchantdemos/donations/templates/error.html @@ -0,0 +1,22 @@ +{% extends "templates/base.html" %} +{% block main %} +

An Error Occurred

+ +

{{ message }}

+ + {% if status_code %} +

The backend returned status code {{ status_code }}.

+ {% endif %} + + {% if json %} +

Backend Response:

+
{{ json }}
+ {% endif %} + + {% if stack %} +

Stack trace:

+
+    {{ stack }}
+  
+ {% endif %} +{% endblock main %} diff --git a/talermerchantdemos/donations/templates/fulfillment.html b/talermerchantdemos/donations/templates/fulfillment.html new file mode 100644 index 0000000..17d8cd8 --- /dev/null +++ b/talermerchantdemos/donations/templates/fulfillment.html @@ -0,0 +1,11 @@ +{% extends "templates/base.html" %} + +{% block main %} +

Donation Receipt

+

Thank you, {{ donation_donor }}, for donating {{ donation_amount }} to {{ donation_receiver }}.

+ +

Please keep the order identifier {{ order_id }} as a receipt for your donation. You can show other people that you donated +by sharing this link with them.

+ +

You can always make another donation

+{% endblock main %} diff --git a/talermerchantdemos/donations/templates/index.html b/talermerchantdemos/donations/templates/index.html new file mode 100644 index 0000000..cbb3c35 --- /dev/null +++ b/talermerchantdemos/donations/templates/index.html @@ -0,0 +1,42 @@ +{% extends "templates/base.html" %} + +{% block main %} +

Welcome to the Taler Donation "Shop" Demo

+ +

This toy donations website shows the user experience for donations with Taler. +You are paying with an imaginary currency ({{ merchant_currency }}). +

+ +
+

Please select a project, the amount (*) of {{ merchant_currency }} you + wish to donate, and enter the name that will appear on your receipt:

+ +
+
+ + + + +
+
+

+ (*) To make it a bit more fun, the 5 {{ merchant_currency }} option is + deliberately implemented with a fault: the merchant will try to make you + donate 6 {{ merchant_currency }} instead of the 5 {{ merchant_currency }} you + got to see. But do not worry, you will be given the opportunity to review + the final offer from the merchant in a window secured by the Taler + extension. That way, you can spot the error before committing to an + incorrect contract. +

+
+ +{% endblock %} diff --git a/talermerchantdemos/donations/templates/javascript.html b/talermerchantdemos/donations/templates/javascript.html new file mode 100644 index 0000000..436c186 --- /dev/null +++ b/talermerchantdemos/donations/templates/javascript.html @@ -0,0 +1,31 @@ + + + + + JavaScript disclaimer. + + +

This site does not use JavaScript.

+ + + + + + diff --git a/talermerchantdemos/donations/templates/provider-not-supported.html b/talermerchantdemos/donations/templates/provider-not-supported.html new file mode 100644 index 0000000..88f2000 --- /dev/null +++ b/talermerchantdemos/donations/templates/provider-not-supported.html @@ -0,0 +1,6 @@ +{% extends "templates/base.html" %} + +{% block main %} +

Payment Provider Not Supported

+

Unfortunately the selected payment provider is not supported in this demo. Please go back and select "Taler".

+{% endblock main %} diff --git a/talermerchantdemos/donations/templates/request_payment.html b/talermerchantdemos/donations/templates/request_payment.html new file mode 100644 index 0000000..6e050d0 --- /dev/null +++ b/talermerchantdemos/donations/templates/request_payment.html @@ -0,0 +1,69 @@ +{% extends "templates/base.html" %} + + +{% block meta %} + +{% endblock meta %} + + +{% block scripts %} + +{% endblock scripts %} + + +{% block main %} + +

Payment Required

+ +
+

+ 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 pay with your mobile wallet: +

+ + {{ qrcode_svg | safe }} + +

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

+ +
+ +{% endblock main %} -- cgit v1.2.3