From 586285028845c8ed9a2e859f1266c233b8278311 Mon Sep 17 00:00:00 2001 From: stilbruch Date: Sun, 24 Apr 2022 17:59:31 -0500 Subject: Fix backend for workout editing --- app/templates/workout/create.html | 1 + app/templates/workout/record.html | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'app/templates') diff --git a/app/templates/workout/create.html b/app/templates/workout/create.html index 292aaa8..333aca6 100644 --- a/app/templates/workout/create.html +++ b/app/templates/workout/create.html @@ -18,6 +18,7 @@
{% for entry in form.exercises.entries %} + {{ entry['id']() }}
diff --git a/app/templates/workout/record.html b/app/templates/workout/record.html index d1662e3..d7e29f8 100644 --- a/app/templates/workout/record.html +++ b/app/templates/workout/record.html @@ -4,6 +4,7 @@ {% block form %} {% for exercise in workout.exercises %} +{% set outer_loop = loop %}

{{ exercise.name }}

@@ -17,8 +18,8 @@ {% for i in range(exercise.sets) %} - - + +
{{ i + 1 }} @@ -42,6 +43,15 @@ {% endfor %} +
+ +
+ {% endblock %} -- cgit v1.2.3