From 54f1f115770b97b0b68a215cb4a148408ac7f9e7 Mon Sep 17 00:00:00 2001 From: FivePixels Date: Mon, 2 May 2022 18:14:24 -0500 Subject: Update record_select to show option to create new workout when there are no workouts. Also fix spelling error in container --- app/templates/workout/record_select.html | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/templates/workout/record_select.html b/app/templates/workout/record_select.html index aeee3e2..8366cf3 100644 --- a/app/templates/workout/record_select.html +++ b/app/templates/workout/record_select.html @@ -1,16 +1,17 @@ {% extends 'base/layout.html' %} {% block content %} -
+
{% for workout in current_user.workouts %}
-

{{ workout.name }}

+

Workout: {{ workout.name }}

+ Exercises: {% for exercise in workout.exercises %}

{{ exercise.sets }} x {{ exercise.units }} x {{ exercise.name }}

{% endfor %} @@ -19,8 +20,26 @@
+ {% else %} +
+
+
+

You have no workouts.

+ +
+
+
{% endfor %}
+
+
{% endblock %} -- cgit v1.2.3 From b34c9825fad0bc8a5a480dcfabd5a058d2b3222a Mon Sep 17 00:00:00 2001 From: FivePixels Date: Mon, 2 May 2022 18:15:54 -0500 Subject: Update create new workout with add icon instead of archive icon --- app/templates/base/layout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/templates/base/layout.html b/app/templates/base/layout.html index 69b470d..a738cec 100644 --- a/app/templates/base/layout.html +++ b/app/templates/base/layout.html @@ -58,7 +58,7 @@ - + Create a Workout -- cgit v1.2.3