diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2017-11-20 13:26:28 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2017-11-20 13:26:28 +0100 |
commit | f1b5b52ca7cf7be99b64b031ca5d8a52e5228754 (patch) | |
tree | 6da566fbf699fe29736ed23b3ac809d6b157fe15 /talersurvey/survey/templates | |
parent | 8d156e4e067e4917c56b168b7ae5d49170862bc0 (diff) | |
download | survey-f1b5b52ca7cf7be99b64b031ca5d8a52e5228754.tar.gz survey-f1b5b52ca7cf7be99b64b031ca5d8a52e5228754.tar.bz2 survey-f1b5b52ca7cf7be99b64b031ca5d8a52e5228754.zip |
showing the homepage
Diffstat (limited to 'talersurvey/survey/templates')
-rw-r--r-- | talersurvey/survey/templates/base.html | 62 | ||||
-rw-r--r-- | talersurvey/survey/templates/index.html | 25 |
2 files changed, 87 insertions, 0 deletions
diff --git a/talersurvey/survey/templates/base.html b/talersurvey/survey/templates/base.html new file mode 100644 index 0000000..dc78eb0 --- /dev/null +++ b/talersurvey/survey/templates/base.html @@ -0,0 +1,62 @@ +<!DOCTYPE html> +<!-- + This file is part of GNU TALER. + Copyright (C) 2014, 2015, 2016 INRIA + + 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> +<head> + <title>Taler Donation Demo</title> + <link rel="stylesheet" type="text/css" href="{{ url('/static/web-common/pure.css') }}" /> + <link rel="stylesheet" type="text/css" href="{{ url('/static/web-common/demo.css') }}" /> + <script src="{{ url("/static/web-common/taler-wallet-lib.js") }}" type="application/javascript"></script> + <script src="{{ url("/static/web-common/lang.js") }}" type="application/javascript"></script> + {% block styles %}{% endblock %} + {% block scripts %}{% endblock %} +</head> + +<body> + <div class="demobar"> + <h1><span class="tt adorn-brackets">Taler Demo</span></h1> + <h1><span class="it"><a href="{{ env('TALER_ENV_URL_MERCHANT_DONATIONS') }}">Donations</a></span></h1> + <p>This is the donation page, you can make donations (with an imaginary currency for now) to free software projects.</p> + <ul> + <li><a href="{{ env('TALER_ENV_URL_INTRO', '#') }}">Introduction</a></li> + <li><a href="{{ env('TALER_ENV_URL_BANK', '#') }}">Bank</a></li> + <li><a href="{{ env('TALER_ENV_URL_MERCHANT_BLOG', '#') }}">Essay Shop</a></li> + <li><a href="{{ env('TALER_ENV_URL_MERCHANT_DONATIONS', '#') }}">Donations</a></li> + </ul> + <p>You can learn more about Taler on our main <a href="https://taler.net">website</a>.</p> + </div> + + <section id="main" class="content"> + <a href="{{ url("/") }}"> + <div id="logo"> + <svg height="100" width="100"> + <circle cx="50" cy="50" r="40" stroke="darkcyan" stroke-width="6" fill="white" /> + <text x="19" y="82" font-family="Verdana" font-size="90" fill="darkcyan">S</text> + </svg> + </div> + </a> + {% block main %} + This is the main content of the page. + {% endblock %} + <hr /> + <div class="copyright"> + <p>Copyright © 2014—2017 INRIA</p> + <a href="/javascript" data-jslicense="1" class="jslicenseinfo">JavaScript license information</a> + </div> + </section> +</body> +</html> diff --git a/talersurvey/survey/templates/index.html b/talersurvey/survey/templates/index.html new file mode 100644 index 0000000..f842d6a --- /dev/null +++ b/talersurvey/survey/templates/index.html @@ -0,0 +1,25 @@ +{% extends "templates/base.html" %} + +{% block main %} + <div> + <p> + In this page, you can participate in our survey about payment systems + and get a nice tip - via your Taler wallet - from this shop! + </p> + </div> + <div> + <form action="{{ url('/survey') }}" method="post"> + {% if success %} + <strong>Congratulations, your reward has been successfully submitted!</strong> + {% endif %} + What do you prefer?<br> + <input type="radio" name="paypref" value="taler"> + <label>Taler</label> + </input> + <input type="radio" name="paypref" value="visa"> + <label>Visa</label> + </input><br> + <input type="submit" value="Submit"></input> + </form> + </div> +{% endblock %} |