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(-) 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