From a8d33edaf33043fbb4b27389fb800396585363ff Mon Sep 17 00:00:00 2001 From: Sunpy Date: Sat, 2 Mar 2019 23:41:16 +0100 Subject: [PATCH] Simple login option page --- routes.py | 8 +++++++- templates/login.html | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 templates/login.html diff --git a/routes.py b/routes.py index f038fba..4392b5b 100644 --- a/routes.py +++ b/routes.py @@ -1,4 +1,4 @@ -from flask import render_template, url_for +from flask import render_template, url_for, request from objects import glob # Global sharing of python objects in a manageable way @glob.app.route("/") @@ -6,6 +6,12 @@ from objects import glob # Global sharing of python objects in a manageable way def home(): return render_template("home.html") +@glob.app.route("/login", methods = ["GET", "POST"]) +def serve_login(): + if request.method == "POST": + return "TODO: Login handle", 501 + return render_template("login.html") + @glob.app.route("/testing") def we_are_testing(): return render_template("testing.html") diff --git a/templates/login.html b/templates/login.html new file mode 100644 index 0000000..d2a17bc --- /dev/null +++ b/templates/login.html @@ -0,0 +1,42 @@ +{% set title = "Login" %} + +{% extends "layout/bootstrap.html" %} + +{% block content %} +
+
+
+
+
+

Login Methods

+
+
+
+
Electronic ID
+

+ Secure login using Electronic ID allows Husstanden to show you banking details, bills and receipts.
+ How to obtain an Electronic ID +

+
+
+
House Account
+

+ Accounts with less privileges and fast login to view non-sensitive information.
+ Multiple house accounts can be created by logging in with house holder's verified Electronic ID. +

+
+
+
+ +
+
+
+
+{% endblock %} \ No newline at end of file