From 4f1e55112138a1f3b4be3bf23e3740ae3effac35 Mon Sep 17 00:00:00 2001 From: stilbruch Date: Sat, 23 Apr 2022 15:48:45 -0500 Subject: Add javascript to add sets while recording workout --- app/templates/base/form.html | 2 +- app/templates/workout/record.html | 83 ++++++++++++++++++--------------------- 2 files changed, 40 insertions(+), 45 deletions(-) (limited to 'app/templates') diff --git a/app/templates/base/form.html b/app/templates/base/form.html index 72083ae..9f356e0 100644 --- a/app/templates/base/form.html +++ b/app/templates/base/form.html @@ -4,7 +4,7 @@
-

{{ title }}

+

{% block title %}{% endblock %}

{% with messages = get_flashed_messages(with_categories=true) %} diff --git a/app/templates/workout/record.html b/app/templates/workout/record.html index 3dfb2c8..94fe611 100644 --- a/app/templates/workout/record.html +++ b/app/templates/workout/record.html @@ -1,52 +1,47 @@ -{% extends 'base/layout.html' %} +{% extends 'base/form.html' %} -{% block content %} -
-
-
-

Record {{ workout.name }}

-
- {% for exercise in workout.exercises %} -

{{ exercise.name }}

- - - - - - - - - {% for i in range(exercise.sets) %} - - - - - - - {% endfor %} - -
SetlbsRepsDone
{{ i }} - -
-
-