From 05d7b80e092f9a3699fedfb08b85812d57cef0e8 Mon Sep 17 00:00:00 2001 From: stilbruch Date: Wed, 6 Apr 2022 19:11:30 -0500 Subject: Start record workout --- app/routes.py | 5 +++++ app/templates/base/layout.html | 2 +- app/templates/workout/record.html | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 app/templates/workout/record.html diff --git a/app/routes.py b/app/routes.py index 17d8f4e..7ee3986 100644 --- a/app/routes.py +++ b/app/routes.py @@ -111,3 +111,8 @@ def editWorkout(): form.exercises.append_entry(exercise) return render_template('workout/create.html', form=form, title=f'Edit Workout "{workout.name}"') + +@app.route("/workout/record", methods=['GET']) +@login_required +def recordWorkout(): + return render_template('workout/record.html') diff --git a/app/templates/base/layout.html b/app/templates/base/layout.html index 33f61d1..89ad385 100644 --- a/app/templates/base/layout.html +++ b/app/templates/base/layout.html @@ -47,7 +47,7 @@ - + diff --git a/app/templates/workout/record.html b/app/templates/workout/record.html new file mode 100644 index 0000000..1a544fc --- /dev/null +++ b/app/templates/workout/record.html @@ -0,0 +1,37 @@ +{% extends 'base/layout.html' %} + +{% block content %} + + + +{% endblock %} -- cgit v1.2.3