From fcc687b97d0acb878d2167a2ef47939b8bc47598 Mon Sep 17 00:00:00 2001 From: stilbruch Date: Sat, 23 Apr 2022 12:38:19 -0500 Subject: Add select page (it sucks) --- app/routes.py | 5 +++++ app/templates/workout/record.html | 28 ++-------------------------- app/templates/workout/select.html | 23 +++++++++++++++++++++++ 3 files changed, 30 insertions(+), 26 deletions(-) create mode 100644 app/templates/workout/select.html (limited to 'app') diff --git a/app/routes.py b/app/routes.py index 7ee3986..8f5d8c1 100644 --- a/app/routes.py +++ b/app/routes.py @@ -116,3 +116,8 @@ def editWorkout(): @login_required def recordWorkout(): return render_template('workout/record.html') + +@app.route("/workout/select", methods=['GET']) +@login_required +def selectWorkout(): + return render_template('workout/select.html') diff --git a/app/templates/workout/record.html b/app/templates/workout/record.html index 1a544fc..bc6b695 100644 --- a/app/templates/workout/record.html +++ b/app/templates/workout/record.html @@ -5,32 +5,8 @@
-

Leg Day

-
- -
-
+ +
diff --git a/app/templates/workout/select.html b/app/templates/workout/select.html new file mode 100644 index 0000000..c01a4f8 --- /dev/null +++ b/app/templates/workout/select.html @@ -0,0 +1,23 @@ +{% extends 'base/layout.html' %} + +{% block content %} +
+
+ {% for workout in current_user.workouts %} +
+
+
+

{{ workout.name }}

+
+
+
+ Start +
+
+
+
+ {% endfor %} +
+
+ +{% endblock %} -- cgit v1.2.3