summaryrefslogtreecommitdiff
path: root/talermerchantdemos/donations/templates
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-04-21 21:07:18 +0200
committerFlorian Dold <florian@dold.me>2021-04-21 21:07:18 +0200
commit2b84f3bd5de3a500b63193924bea2f3dfd0c9afd (patch)
tree08d5a2bd354ab7849d731eabe7b132429b6d2225 /talermerchantdemos/donations/templates
parent4356540b2eb12b2c307270566b0b4ce969e12c60 (diff)
downloadtaler-merchant-demos-2b84f3bd5de3a500b63193924bea2f3dfd0c9afd.tar.gz
taler-merchant-demos-2b84f3bd5de3a500b63193924bea2f3dfd0c9afd.tar.bz2
taler-merchant-demos-2b84f3bd5de3a500b63193924bea2f3dfd0c9afd.zip
common base template, new logo and lots of cleanup
Diffstat (limited to 'talermerchantdemos/donations/templates')
-rw-r--r--talermerchantdemos/donations/templates/base.html.j248
-rw-r--r--talermerchantdemos/donations/templates/checkout.html.j250
-rw-r--r--talermerchantdemos/donations/templates/error.html.j224
l---------talermerchantdemos/donations/templates/footer.html.j21
-rw-r--r--talermerchantdemos/donations/templates/fulfillment.html.j222
-rw-r--r--talermerchantdemos/donations/templates/index.html.j244
-rw-r--r--talermerchantdemos/donations/templates/javascript.html31
l---------talermerchantdemos/donations/templates/language-switcher.html.j21
l---------talermerchantdemos/donations/templates/menu.html.j21
-rw-r--r--talermerchantdemos/donations/templates/provider-not-supported.html.j211
10 files changed, 0 insertions, 233 deletions
diff --git a/talermerchantdemos/donations/templates/base.html.j2 b/talermerchantdemos/donations/templates/base.html.j2
deleted file mode 100644
index 307705f..0000000
--- a/talermerchantdemos/donations/templates/base.html.j2
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<!--
- This file is part of GNU TALER.
- Copyright (C) 2014, 2015, 2016, 2020 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/>
--->
-
-<html data-taler-nojs="true">
-<head>
- <title>{{ gettext("GNU Taler Demo: Donations") }}</title>
- <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='pure.css') }}" />
- <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='demo.css') }}" />
- <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='navbar.css') }}" />
- <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='torsten.css') }}" />
- {% block styles %}{% endblock %}
- {% block scripts %}{% endblock %}
-</head>
-
-<body>
- <header class="demobar" style="display: flex; flex-direction: column;">
- <h1><span class="tt adorn-brackets">{{ gettext("Taler Demo") }}</span><br/>
- <span class="it"><a href="{{ env('TALER_ENV_URL_MERCHANT_DONATIONS') }}">{{gettext("Donations")}}</a></span></h1>
- <p>{{
- gettext ("This is the donation page.") + "<br>" +
- gettext ("Using this page you can make donations in {currency} to Free Software projects.").format(currency=merchant_currency)
- }}
- </p>
- </header>
- {% from 'templates/menu.html.j2' import menu with context %} {{ menu('donations') }}
-
- <section id="main" class="content">
- {% block main %}
- This is the main content of the page.
- {% endblock %}
- {% include 'templates/footer.html.j2' %}
- </section>
-</body>
-</html>
diff --git a/talermerchantdemos/donations/templates/checkout.html.j2 b/talermerchantdemos/donations/templates/checkout.html.j2
deleted file mode 100644
index 5b6900f..0000000
--- a/talermerchantdemos/donations/templates/checkout.html.j2
+++ /dev/null
@@ -1,50 +0,0 @@
-{% extends "templates/base.html.j2" %}
-
-{% block main %}
-<article>
- <h1>{{ gettext("Select your payment method") }}</h1>
-
- <p>
- {{
- gettext('This is an example for a "checkout" page of a Web shop.') + "<br\>" +
- gettext('On the previous page, you have created the shopping cart and decided which product to buy (i.e. which project to donate KUDOS to).') + "<br/>" +
- gettext('As Taler is not yet universally used, we expect merchants will offer various payment options.') + "<br/>" +
- gettext('To continue with the demo, select the &quot;Taler&quot; payment option.')
- }}
- </p>
- <p class="graybox">
- {{
- gettext('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.') + "<br\>" +
- gettext('It would be 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.')
- }}
- </p>
-
- <form name="tform" action="{{ url_for('donate',lang=lang) }}" method="get">
- <div id="opt-form" align="left"><br>
- <input type="hidden" name="donation_receiver" value="{{ donation_receiver }}">
- <input type="hidden" name="donation_amount" value="{{ donation_amount }}">
- <input type="hidden" name="donation_donor" value="{{ donation_donor }}">
-
- <input type="radio" name="payment_system" value="lisa" id="radio-lisa">
- <label for="radio-lisa">Lisa</input>
- <br/>
-
- <input type="radio" name="payment_system" value="ycard" id="radio-ycard">
- <label for="radio-ycard">You Card</label>
- <br/>
-
- <input type="radio" name="payment_system" value="cardme" id="radio-cardme">
- <label for="radio-cardme">Card Me</label>
- <br/>
-
- <input type="radio" name="payment_system" value="taler" checked id="radio-taler">
- <label for=radio-taler">Taler</label>
- <br/>
-
- <input id="select-payment-method" type="submit" value="{{gettext("Confirm selection")}}"></input>
- </div>
- </form>
-
-</article>
-
-{% endblock main %}
diff --git a/talermerchantdemos/donations/templates/error.html.j2 b/talermerchantdemos/donations/templates/error.html.j2
deleted file mode 100644
index ffc2e1f..0000000
--- a/talermerchantdemos/donations/templates/error.html.j2
+++ /dev/null
@@ -1,24 +0,0 @@
-{% extends "templates/base.html.j2" %}
-{% block main %}
- <h1>{{ gettext("Error encountered") }}</h1>
-
- <p>{{ message }}</p>
-
- {% if status_code %}
- <p>
- {{ gettext ("The backend returned status code {code}.").format(code=status_code) }}.
- </p>
- {% endif %}
-
- {% if json %}
- <p>{{gettext("Backend response:")}}</p>
- <pre>{{ json }}</pre>
- {% endif %}
-
- {% if stack %}
- <p>{{gettext("Stack trace:")}}</p>
- <pre>
- {{ stack }}
- </pre>
- {% endif %}
-{% endblock main %}
diff --git a/talermerchantdemos/donations/templates/footer.html.j2 b/talermerchantdemos/donations/templates/footer.html.j2
deleted file mode 120000
index 028b093..0000000
--- a/talermerchantdemos/donations/templates/footer.html.j2
+++ /dev/null
@@ -1 +0,0 @@
-../../templates/footer.html.j2 \ No newline at end of file
diff --git a/talermerchantdemos/donations/templates/fulfillment.html.j2 b/talermerchantdemos/donations/templates/fulfillment.html.j2
deleted file mode 100644
index 5fd799b..0000000
--- a/talermerchantdemos/donations/templates/fulfillment.html.j2
+++ /dev/null
@@ -1,22 +0,0 @@
-{% extends "templates/base.html.j2" %}
-
-{% block main %}
-<h2>{{ gettext("Donation Receipt") }}</h2>
-<p>
- {{
- gettext("Thank you, <strong>{donor}</strong>, for donating <strong>{amount}</strong> to <strong>{receiver}</strong>.").format(donor=donation_donor,amount=donation_amount,receiver=donation_receiver)
- }}
-</p>
-<p>
- {{
- gettext("Please keep the order identifier <strong>{id}</strong> as a receipt for your donation.").format(id=order_id) +
- gettext('You can show other people that you donated by sharing <a href="{link}">this link</a> with them.').format(link=request.url)
- }}
-</p>
-
-<p class="graybox">
- {{
- gettext('You can always make <a href="{link}">another donation</a>.').format(link=url_for('index'))
- }}
-</p>
-{% endblock main %}
diff --git a/talermerchantdemos/donations/templates/index.html.j2 b/talermerchantdemos/donations/templates/index.html.j2
deleted file mode 100644
index 87bce85..0000000
--- a/talermerchantdemos/donations/templates/index.html.j2
+++ /dev/null
@@ -1,44 +0,0 @@
-{% extends "templates/base.html.j2" %}
-
-{% block main %}
-<h2>{{ gettext("Donate to Free Software projects") }}</h2>
-
-<p>
-{{
- gettext("This donations website shows the user experience for donations with GNU Taler.") + "<br>" +
- gettext("You can make donations in an toy currency ({currency})").format(currency=merchant_currency)
-}}
-</p>
-
-<div>
- <p>
- {{
- gettext("Please select a project, the amount (*) of {currency} you wish to donate, and enter the donor's name that will appear on your receipt:").format(currency=merchant_currency)
- }}
- </p>
-
- <form name="tform" action="{{ url_for('checkout',lang=lang) }}" method="GET" class="pure-form">
- <div class="participation" id="fake-shop">
- <select name="donation_receiver">
- <option value="GNUnet">GNUnet</option>
- <option value="Taler">GNU Taler</option>
- <option value="Tor">Tor</option>
- </select>
- <select id="taler-donation" name="donation_amount">
- <option value="{{ merchant_currency }}:0.1">0.1 {{ merchant_currency }}</option>
- <option value="{{ merchant_currency }}:1">1 {{ merchant_currency }}</option>
- <option value="{{ merchant_currency }}:6">5 {{ merchant_currency }}</option>
- <option value="{{ merchant_currency }}:10">10 {{ merchant_currency }}</option>
- </select>
- <input type="text" name="donation_donor" value="{{gettext("Anonymous Donor")}}" />
- <input type="submit" class="pure-button pure-button-primary" value="{{gettext("Donate!")}}" />
- </div>
- </form>
- <p class="graybox">
- {{
- gettext("(*) To make the demo a bit more interesting, the 5 {currency} option is deliberately implemented with a fault: the merchant will try to make you donate 6 {currency} instead of the 5 {currency} shown in the form. But do not worry, you will be given the opportunity to review the final offer from the merchant in the Taler wallet. That way, Taler protects you from committing to erroneous payments.").format(currency=merchant_currency)
- }}
- </p>
-</div>
-
-{% endblock %}
diff --git a/talermerchantdemos/donations/templates/javascript.html b/talermerchantdemos/donations/templates/javascript.html
deleted file mode 100644
index 436c186..0000000
--- a/talermerchantdemos/donations/templates/javascript.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!-- This file is in the public domain -->
-
-<html>
- <head>
- <title>JavaScript disclaimer.</title>
- </head>
- <body>
- <h3>This site does not use JavaScript.</h3>
- </body>
-</html>
-
-<!-- The following lines are kept as a template for future inclusion of JavaScript files. -->
-
-<!--
- <html>
- <body>
- <table id="jslicense-labels1">
- <tr>
- <td><a href="/static/path/to/example0.js">example0.js</a></td>
- <td><a href="https://www.gnu.org/licenses/lgpl-2.1.html">LGPL</a></td>
- <td><a href="/static/path/to/example0.js.tar.gz">example0.js.tar.gz</a></td>
- </tr>
- <tr>
- <td><a href="/static/path/to/example1.js">example1.js</a></td>
- <td><a href="https://www.gnu.org/licenses/lgpl-2.1.html">LGPL</a></td>
- <td><a href="/static/path/to/example1.js.tar.gz">example1.js.tar.gz</a></td>
- </tr>
- </table>
- </body>
- </html>
--->
diff --git a/talermerchantdemos/donations/templates/language-switcher.html.j2 b/talermerchantdemos/donations/templates/language-switcher.html.j2
deleted file mode 120000
index 6423c5c..0000000
--- a/talermerchantdemos/donations/templates/language-switcher.html.j2
+++ /dev/null
@@ -1 +0,0 @@
-../../templates/language-switcher.html.j2 \ No newline at end of file
diff --git a/talermerchantdemos/donations/templates/menu.html.j2 b/talermerchantdemos/donations/templates/menu.html.j2
deleted file mode 120000
index b9575ea..0000000
--- a/talermerchantdemos/donations/templates/menu.html.j2
+++ /dev/null
@@ -1 +0,0 @@
-../../templates/menu.html.j2 \ No newline at end of file
diff --git a/talermerchantdemos/donations/templates/provider-not-supported.html.j2 b/talermerchantdemos/donations/templates/provider-not-supported.html.j2
deleted file mode 100644
index a4d5d80..0000000
--- a/talermerchantdemos/donations/templates/provider-not-supported.html.j2
+++ /dev/null
@@ -1,11 +0,0 @@
-{% extends "templates/base.html" %}
-
-{% block main %}
-<h2>{{ gettext("Payment Provider Not Supported") }}</h2>
-<p>
-{{
- gettext("Unfortunately the selected payment provider is not supported in this demo.") + "<br>" +
- gettext("Please go back and select &quot;Taler&quot;.")
-}}
-</p>
-{% endblock main %}