[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-backoffice] 14/31: missing templates
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-backoffice] 14/31: missing templates |
Date: |
Thu, 04 Jan 2018 18:09:37 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository backoffice.
commit 38478a8a4b240d06c841e2e6e9396966b783fecb
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Nov 24 20:24:19 2017 +0100
missing templates
---
talerblog/blog/templates/article_frame.html | 8 +++
talerblog/blog/templates/article_refunded.html | 6 ++
talerblog/blog/templates/backoffice.html | 80 ++++++++++++++++++++++
talerblog/blog/templates/cc-payment.html | 5 ++
talerblog/blog/templates/fallback.html | 25 +++++++
talerblog/blog/templates/index.html | 94 ++++++++++++++++++++++++++
talerblog/blog/templates/javascript.html | 17 +++++
talerblog/blog/templates/purchase.html | 41 +++++++++++
8 files changed, 276 insertions(+)
diff --git a/talerblog/blog/templates/article_frame.html
b/talerblog/blog/templates/article_frame.html
new file mode 100644
index 0000000..50d58e2
--- /dev/null
+++ b/talerblog/blog/templates/article_frame.html
@@ -0,0 +1,8 @@
+{% extends "templates/base.html" %}
+{% block main %}
+{% include "articles/" + article_file %}
+ <form action="/refund" method="POST">
+ <input type="text" name="article_name" value={{ article_name}} hidden>
+ <input type="submit" value="Ask refund!">
+ </form>
+{% endblock main %}
diff --git a/talerblog/blog/templates/article_refunded.html
b/talerblog/blog/templates/article_refunded.html
new file mode 100644
index 0000000..d6e49d7
--- /dev/null
+++ b/talerblog/blog/templates/article_refunded.html
@@ -0,0 +1,6 @@
+{% extends "templates/base.html" %}
+{% block main %}
+ <h1>Article refunded</h1>
+ Unfortunately you can't view the article {{ article_name }}, since the
+ payment for it was refunded.
+{% endblock main %}
diff --git a/talerblog/blog/templates/backoffice.html
b/talerblog/blog/templates/backoffice.html
new file mode 100644
index 0000000..b87495b
--- /dev/null
+++ b/talerblog/blog/templates/backoffice.html
@@ -0,0 +1,80 @@
+{% extends "templates/base.html" %}
+{% block main %}
+ <h1>Backoffice</h1>
+ <p>This page simulates a backoffice facility. Through it,
+ the user can see the money flow from Taler transactions to
+ wire transfers and viceversa.</p>
+ <div>
+ <form action="">
+ <input type="text"
+ placeholder="Order ID"
+ class="order"></input><br>
+ <input type="text"
+ placeholder="WTID"
+ class="transfer"
+ style="visibility: hidden;"></input><br>
+ <input type="text"
+ placeholder="Exchange URI"
+ class="transfer"
+ style="visibility: hidden;"></input><br>
+ <input type="radio"
+ name="track-type"
+ value="order"
+ onclick="cherry_pick_form_order(this.parentNode)"
+ checked>Track order id</input><br>
+ <input type="radio"
+ name="track-type"
+ value="wtid"
+ onclick="cherry_pick_form_transfer(this.parentNode)">Track wire
transfer</input><br>
+ <input type="button"
+ value="submit"
+ onclick='track_cherry_pick(this.parentNode)'></input>
+ </form>
+ </div>
+ <div id="history-container">
+ <table id="history" width="50%" style="visibility: hidden;">
+ <col width="40">
+ <col width="40">
+ <col width="40">
+ <tbody>
+ <tr class="no-records">
+ <th colspan="3">No records found</th>
+ </tr>
+ <tr class="headers" style="visibility: hidden">
+ <th class="order-id">Order ID</th>
+ <th class="amount">Amount</th>
+ <th class="date">Date</th>
+ </tr>
+ </tbody>
+ </table>
+ <br/>
+ <div class="loader"></div>
+ </div>
+
+ <div id="popup1" class="overlay">
+ <div class="popup">
+ <h2>
+ <a class="close" href="#" onclick="close_popup();">×</a>
+ </h2>
+ <div class="track-content">
+ <table>
+ <tbody>
+ <tr>
+ <th class="wtid">WTID</th>
+ <th class="amount">Amount</th>
+ <th class="date">Date</th>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ </div>
+ </div>
+{% endblock main %}
+
+{% block styles %}
+ <link rel="stylesheet" type="text/css" href="{{
url("/static/backoffice.css") }}">
+{% endblock styles %}
+
+{% block scripts %}
+ <script src="{{ url('/static/backoffice.js') }}"
type="application/javascript"></script>
+{% endblock scripts %}
diff --git a/talerblog/blog/templates/cc-payment.html
b/talerblog/blog/templates/cc-payment.html
new file mode 100644
index 0000000..b23b751
--- /dev/null
+++ b/talerblog/blog/templates/cc-payment.html
@@ -0,0 +1,5 @@
+{% extends "templates/base.html" %}
+
+{% block main %}
+Credit card payment declined.
+{% endblock main %}
diff --git a/talerblog/blog/templates/fallback.html
b/talerblog/blog/templates/fallback.html
new file mode 100644
index 0000000..ecf22ae
--- /dev/null
+++ b/talerblog/blog/templates/fallback.html
@@ -0,0 +1,25 @@
+<!doctype html>
+<html>
+ <body>
+ <div id="ccfakeform" class="fade">
+ <p>
+ Oops, it looks like you don't have a Taler wallet installed. Why don't
you enter
+ all your credit card details before reading the article? <em>You can also
+ use GNU Taler to complete the purchase at any time.</em>
+ </p>
+
+ <form>
+ First name<br> <input type="text"></input><br>
+ Family name<br> <input type="text"></input><br>
+ Age<br> <input type="text"></input><br>
+ Nationality<br> <input type="text"></input><br>
+ Gender<br> <input type="radio" name"gender">Male</input>
+ CC number<br> <input type="text"></input><br>
+ <input type="radio" name="gender">Female</input><br>
+ </form>
+ <form method="get" action="/cc-payment/{{ article_name }}">
+ <input type="submit"></input>
+ </form>
+ </div>
+ </body>
+</html>
diff --git a/talerblog/blog/templates/index.html
b/talerblog/blog/templates/index.html
new file mode 100644
index 0000000..5d767ee
--- /dev/null
+++ b/talerblog/blog/templates/index.html
@@ -0,0 +1,94 @@
+{% extends "templates/base.html" %}
+{% block main %}
+ <h1>About</h1>
+ <p>This "blog" simulates how a website selling articles using
+ Taler should work.
+ We illustrate the use of Taler using articles from
+ Richard Stallman's book "Free Software, Free Society",
+ which is also
+ <a
href="http://shop.fsf.org/product/free-software-free-society-2/">published by
the FSF</a>
+ and available gratis at <a href="http://www.gnu.org/">gnu.org</a>.
+ </p>
+
+ <h2 class="taler-installed-hide">Taler wallet required for payment</h2>
+
+ <p class="taler-installed-hide">
+ This site requires a Taler wallet to pay for articles.
+ Please visit our <a href="/landing">landing page</a>
+ to install a wallet (and to withdraw digital coins).
+ </p>
+ <h2>Back-office interface</h2>
+ <p>
+ If you are a merchant and want to track your deposits, try the
+ <a href="/backoffice">back-office</a>!
+ </p>
+
+ <h2>Free Software, Free Society</h2>
+
+ <p>This is the second edition of <cite>Free Software, Free Society:
Selected Essays of Richard M. Stallman.</cite><br>
+Free Software Foundation<br>
+51 Franklin Street, Fifth Floor<br>
+Boston, MA 02110-1335
+<br>
+Copyright © 2002, 2010 Free Software Foundation, Inc.
+</p><blockquote><p>Verbatim copying and distribution of this entire book are
permitted
+worldwide, without royalty, in any medium, provided this notice is
+preserved. Permission is granted to copy and distribute translations
+of this book from the original English into another language provided
+the translation has been approved by the Free Software Foundation and
+the copyright notice and this permission notice are preserved on all
+copies.
+</p></blockquote>
+<p>ISBN 978-0-9831592-0-9
+<br>
+<br>
+</p>
+<p>
+<em>Richard Stallman is the prophet of the free software movement.
+He understood the dangers of software patents years ago. Now that
+this has become a crucial issue in the world, buy this book and read
+what he said.</em><br> —<strong>Tim Berners-Lee,</strong> inventor of
the World
+Wide Web
+<br>
+<br>
+<em>Richard Stallman is the philosopher king of software. He
+single-handedly ignited what has become a world-wide movement to
+create software that is Free, with a capital F. He has toiled for
+years at a project that many once considered a fool’s errand, and now
+that is widely seen as “inevitable.”</em><br>
—<strong>Simon L.
+Garfinkel,</strong> computer science author and columnist
+<br>
+<br>
+<em>By his hugely successful efforts to establish the idea of “Free
+Software,” Stallman has made a massive contribution to the human
+condition. His contribution combines elements that have technical,
+social, political, and economic consequences.</em><br> —<strong>Gerald
Jay
+Sussman,</strong> Matsushita Professor of Electrical Engineering, MIT
+<br>
+<br>
+<em>RMS is the leading philosopher of software. You may dislike
+some of his attitudes, but you cannot avoid his ideas. This slim
+volume will make those ideas readily accessible to those who are
+confused by the buzzwords of rampant commercialism. This book needs
+to be widely circulated and widely read.</em><br> —<strong>Peter
Salus,</strong>
+computer science writer, book reviewer, and UNIX historian
+<br>
+<br>
+<em>Richard is the leading force of the free software movement.
+This book is very important to spread the key concepts of free
+software world-wide, so everyone can understand it. Free software
+gives people freedom to use their creativity.</em><br> —<strong>Masayuki
+Ida,</strong> professor, Graduate School of International Management, Aoyama
+Gakuin University
+</p>
+ <h2>Chapters</h2>
+ <!-- TODO: show this section ONLY if Taler wallet is present! -->
+ <ul style="list-style-type:none">
+ {% for article in articles %}
+ <h3><a href="{{ url_for("article", name=article.slug)
}}">{{article.title}}</a></h3>
+ {{ article.teaser|safe }}
+ {% else %}
+ <em>(No articles available)</em>
+ {% endfor %}
+ </ul>
+{% endblock main %}
diff --git a/talerblog/blog/templates/javascript.html
b/talerblog/blog/templates/javascript.html
new file mode 100644
index 0000000..8f27425
--- /dev/null
+++ b/talerblog/blog/templates/javascript.html
@@ -0,0 +1,17 @@
+<!-- This file is in the public domain -->
+<html>
+<body>
+<table id="jslicense-labels1">
+<tr>
+ <td><a
href="/static/web-common/taler-wallet-lib.js">taler-wallet-lib.js</a></td>
+ <td><a href="https://www.gnu.org/licenses/lgpl-2.1.html">LGPL</a></td>
+ <td><a
href="/static/web-common/taler-wallet-lib.js.tar.gz">taler-wallet-lib.js.tar.gz</a></td>
+</tr>
+<tr>
+ <td><a
href="/static/web-common/dropdown-navbar_script.js">dropdown-navbar_script.js</a></td>
+ <td><a href="https://www.gnu.org/licenses/lgpl-2.1.html">LGPL</a></td>
+ <td><a
href="/static/web-common/dropdown-navbar_script.js">dropdown-navbar_script.js</a></td>
+</tr>
+</table>
+</body>
+</html>
diff --git a/talerblog/blog/templates/purchase.html
b/talerblog/blog/templates/purchase.html
new file mode 100644
index 0000000..d1baf38
--- /dev/null
+++ b/talerblog/blog/templates/purchase.html
@@ -0,0 +1,41 @@
+{% extends "templates/base.html" %}
+
+{% block main %}
+<meta name="hc" value="{{ hc }}">
+<meta name="pay_url" value="{{ pay_url|safe }}">
+<meta name="offering_url" value="{{ offering_url|safe }}">
+<meta name="contract_url" value="{{ contract_url|safe }}">
+<meta name="no_contract" value="{{ no_contract }}">
+<div id="ccfakeform" class="fade">
+ <p>
+ Oops, it looks like you don't have a Taler wallet installed. Why don't you
enter
+ all your credit card details before reading the article? <em>You can also
+ use GNU Taler to complete the purchase at any time.</em>
+ </p>
+
+ <form>
+ First name<br> <input type="text"></input><br>
+ Family name<br> <input type="text"></input><br>
+ Age<br> <input type="text"></input><br>
+ Nationality<br> <input type="text"></input><br>
+ Gender<br> <input type="radio" name"gender">Male</input>
+ CC number<br> <input type="text"></input><br>
+ <input type="radio" name="gender">Female</input><br>
+ </form>
+ <form method="get" action="/cc-payment/{{ article_name }}">
+ <input type="submit"></input>
+ </form>
+</div>
+
+<div id="talerwait">
+ <em>Processing payment with GNU Taler, please wait <span
id="action-indicator"></span></em>
+</div>
+{% endblock main %}
+
+{% block body_prelude %}
+ <script src="{{ url('/static/body-prelude.js') }}"
type="application/javascript"></script>
+{% endblock body_prelude %}
+
+{% block scripts %}
+ <script src="{{ url('/static/purchase.js') }}"
type="application/javascript"></script>
+{% endblock scripts %}
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-backoffice] 10/31: moving data, (continued)
- [GNUnet-SVN] [taler-backoffice] 10/31: moving data, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 23/31: fix names, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 26/31: decrease article cost to make it work with tipping, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 27/31: adjust tests, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 03/31: bootstrap/wsgi/launcher, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 06/31: base template, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 18/31: naming leftovers, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 22/31: pacify PEP checkers, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 21/31: linting the launcher, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 28/31: survey in side bar, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 14/31: missing templates,
gnunet <=
- [GNUnet-SVN] [taler-backoffice] 11/31: actual blog logic, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 05/31: m4, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 09/31: __init__, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 30/31: mock and nose for testing, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 29/31: fix demobar, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 31/31: repo description, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 17/31: right templates dir, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 16/31: testcase, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 12/31: config parser, gnunet, 2018/01/04
- [GNUnet-SVN] [taler-backoffice] 20/31: mostly linted, gnunet, 2018/01/04