From 3537e2893334b50cd8851face917ae79ea084908 Mon Sep 17 00:00:00 2001 From: Lynne Date: Fri, 30 Aug 2019 13:56:28 +1000 Subject: [PATCH] added account settings page --- static/style.css | 2 +- templates/settings.html | 78 +++++++++++++++++++++++++++++++++++++++++ webui.py | 4 +++ 3 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 templates/settings.html diff --git a/static/style.css b/static/style.css index 8e8909c..14b4a52 100644 --- a/static/style.css +++ b/static/style.css @@ -1,6 +1,6 @@ body { font-family: "Roboto", sans-serif; - margin: 2.5%; + margin: 2%; background-color: #282c37; color: white; } diff --git a/templates/settings.html b/templates/settings.html new file mode 100644 index 0000000..10c1712 --- /dev/null +++ b/templates/settings.html @@ -0,0 +1,78 @@ + + + + + FediBooks + {% include 'imports.html' %} + + + +
+

Account settings

+
+ +
+
+
+

Login settings

+

Update your email and password here.

+
+ +
+ + +
+
+ + +
+ +
+

Contact settings

+

When should FediBooks send you email?

+
+ +
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+ + Cancel + Help +
+
+
+ + {% include 'footer.html' %} + + diff --git a/webui.py b/webui.py index 568d1fd..e332f15 100644 --- a/webui.py +++ b/webui.py @@ -23,6 +23,10 @@ def show_login_page(): def show_signup_page(): return render_template("login.html", signup = True) +@app.route("/settings") +def settings(): + return render_template("settings.html") + @app.route("/bot/edit/") def bot_edit(id): return render_template("bot_edit.html")