summaryrefslogtreecommitdiff
path: root/talerbank/app/templates/login.html
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-29 01:20:06 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-01-09 15:34:19 +0100
commitaf104fce9bc3b95c44371a1b137d1a733de027b2 (patch)
tree6ba8f1373115348b6485f46e583512bef2ee9281 /talerbank/app/templates/login.html
parentf325bdb8ca56574b0524fbe5d3f29c2a56832123 (diff)
downloadbank-af104fce9bc3b95c44371a1b137d1a733de027b2.tar.gz
bank-af104fce9bc3b95c44371a1b137d1a733de027b2.tar.bz2
bank-af104fce9bc3b95c44371a1b137d1a733de027b2.zip
The big refactor.
Diffstat (limited to 'talerbank/app/templates/login.html')
-rw-r--r--talerbank/app/templates/login.html76
1 files changed, 76 insertions, 0 deletions
diff --git a/talerbank/app/templates/login.html b/talerbank/app/templates/login.html
new file mode 100644
index 0000000..b9d6020
--- /dev/null
+++ b/talerbank/app/templates/login.html
@@ -0,0 +1,76 @@
+<!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/>
+
+ @author Marcello Stanisci
+ @author Florian Dold
+-->
+
+{% extends "base.html" %}
+{% load settings_value from settings %}
+
+{% block headermsg %}
+ <h1 lang="en" class="nav">Welcome to the {% settings_value "TALER_CURRENCY" %} Bank!</h1>
+{% endblock headermsg %}
+
+{% block content %}
+ <aside class="sidebar" id="left">
+ </aside>
+ <section id="main">
+ <article>
+ <div class="login-form">
+ <h1>Please login!</h1>
+ {% if form.errors %}
+ <p class="informational informational-fail">
+ Your username and password didn't match. Please try again.
+ </p>
+ {% endif %}
+
+ {% if just_logged_out %}
+ <p class="informational informational-ok">
+ You were logged out successfully.
+ </p>
+ {% endif %}
+
+ {% if next %}
+ {% if user.is_authenticated %}
+ <p class="informational informational-fail">Your account doesn't have access to this page. To proceed,
+ please login with an account that has access.</p>
+ {% else %}
+ <p>Please login to see this page.</p>
+ {% endif %}
+ {% endif %}
+ <table>
+ <form method="post" action="{% url 'login' %}">
+ {% csrf_token %}
+ {{ form.username }}
+ <input type="password" name="password" placeholder="password"></input>
+ <input type="submit" value="login" />
+ <input type="hidden" name="next" value="{{ next }}" />
+ </form>
+ </table>
+ </div>
+ <p>
+ If you are a new customer, please <a href="{% url 'register' %}">register</a>.
+ Registration is fast and gratis, and it gives you a registration bonus
+ of 100 {% settings_value "TALER_CURRENCY" %}!
+ </p>
+ <p>
+ To view transactions of public accounts,
+ please <a href="{% url "public-accounts" %}">click here</a>.
+ </p>
+ </article>
+ </section>
+{% endblock content %}