From 04c0846859fa9c18ea4e6bd298fc3388d3da819b Mon Sep 17 00:00:00 2001 From: FivePixels Date: Mon, 7 Mar 2022 16:45:35 -0600 Subject: Update spelling error, update rational for logged in homepage --- docs/project_outline.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/project_outline.tex b/docs/project_outline.tex index ad94cc2..c822d12 100644 --- a/docs/project_outline.tex +++ b/docs/project_outline.tex @@ -106,7 +106,7 @@ The web application will be developed in Python using the Flask framework. A dat \begin{description} \item[Description] Users will be able to change their password. \item[Rational] Allow users to use whichever password they want. - \item[Inputs] USer inputs old and new password in a form. + \item[Inputs] User inputs old and new password in a form. \item[Outputs] User's password is updated in the database. \item[Dependencies] User will need to be logged in. \end{description} @@ -132,7 +132,7 @@ The web application will be developed in Python using the Flask framework. A dat \subsection{Req. 6 - User Homepage} \begin{description} \item[Description] When a user is logged in, they will be presented with a homepage suggesting to create a goal, view predictions, view past records, and record a new workout. - \item[Rational] New users need to learn what the application is, and why they might be interested in using it. + \item[Rational] Users need to be able to view their workouts and information. \item[Inputs] Login State from User Account Management \item[Outputs] A HTML Page as described above \item[Dependencies] User will need to be logged in -- cgit v1.2.3 From 2cd5ffcc0ee2223840446f4f8feb9cd69d81e304 Mon Sep 17 00:00:00 2001 From: FivePixels Date: Mon, 21 Mar 2022 18:06:38 -0500 Subject: Add user endpoints, add placeholders for login/register, update hyperlinks to refer to correct endpoints --- app/app.py | 8 +++++ app/templates/base.html | 6 ++-- app/templates/base/index.html | 69 +++++++++++++++++++++++++++++++++++++--- app/templates/user/login.html | 68 +++++++++++++++++++++++++++++++++++++++ app/templates/user/register.html | 68 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 212 insertions(+), 7 deletions(-) diff --git a/app/app.py b/app/app.py index 2ea9126..9cf1166 100644 --- a/app/app.py +++ b/app/app.py @@ -5,3 +5,11 @@ app = Flask(__name__) @app.route("/", methods=["GET"]) def index(): return render_template('base/index.html') + +@app.route("/login", methods=["GET"]) +def login(): + return render_template('user/login.html') + +@app.route("/register", methods=["GET"]) +def register(): + return render_template('user/register.html') diff --git a/app/templates/base.html b/app/templates/base.html index 6f23b73..3139dcd 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -7,7 +7,7 @@ - Strenghty + Strenghty 💪 @@ -51,8 +51,8 @@ diff --git a/app/templates/base/index.html b/app/templates/base/index.html index 11d266c..70f52e8 100644 --- a/app/templates/base/index.html +++ b/app/templates/base/index.html @@ -1,7 +1,68 @@ -{% extends "base.html" %} + + + + + -{% block content %} + + -Welcome to Strengthy + Strenghty 💪 + + + + + + + {% block content %}{% endblock %} +

This is the index page. + + + + diff --git a/app/templates/user/login.html b/app/templates/user/login.html index e69de29..350449a 100644 --- a/app/templates/user/login.html +++ b/app/templates/user/login.html @@ -0,0 +1,68 @@ + + + + + + + + + + Strenghty 💪 + + + +

+ + + {% block content %}{% endblock %} +

This is the login page.

+ + + + diff --git a/app/templates/user/register.html b/app/templates/user/register.html index e69de29..e63ed06 100644 --- a/app/templates/user/register.html +++ b/app/templates/user/register.html @@ -0,0 +1,68 @@ + + + + + + + + + + Strenghty 💪 + + + + + + + {% block content %}{% endblock %} +

This is the register page.

+ + + + -- cgit v1.2.3