From c27d4e9189c33ddaac88538ebe30c0570754b69f Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Fri, 23 Sep 2022 18:59:42 -0400 Subject: [PATCH] Added create account page --- undercover/routes.py | 5 ++++ undercover/templates/create_account.jinja2 | 34 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 undercover/templates/create_account.jinja2 diff --git a/undercover/routes.py b/undercover/routes.py index 5c81964..7f6887a 100644 --- a/undercover/routes.py +++ b/undercover/routes.py @@ -95,6 +95,11 @@ def index_get(): ) +@writing_blueprint.route('/create_account', methods=['GET']) +def index_get(): + return render_template('create_account.jinja2') + + @writing_blueprint.route('/dbtest', methods=['GET']) def db_test_get(): response = make_response(db.get_user_letters(1)[0].contents, 200) diff --git a/undercover/templates/create_account.jinja2 b/undercover/templates/create_account.jinja2 new file mode 100644 index 0000000..2dc2fb9 --- /dev/null +++ b/undercover/templates/create_account.jinja2 @@ -0,0 +1,34 @@ +{% extends "base.jinja2" %} + +{% block title %}UnderCover - Create Account{% endblock title %} + +{% block content %} +
+ + + + + + + Create Account +
+ + {% if errors %} +
+

Error while logging in:

+

+ {% for error in errors %} + {{ error }}
+ {% endfor %} +

+
+ {% endif %} + +{% endblock content %}