From 0bcfd4a9a26d66af8a44ff36686b54ad2572d9e1 Mon Sep 17 00:00:00 2001 From: stilbruch Date: Sun, 24 Apr 2022 19:45:07 -0500 Subject: Fix workout creation and editing --- app/templates/workout/create.html | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'app/templates') diff --git a/app/templates/workout/create.html b/app/templates/workout/create.html index a84b457..1f6d136 100644 --- a/app/templates/workout/create.html +++ b/app/templates/workout/create.html @@ -1,6 +1,12 @@ {% extends 'base/form.html' %} -{% block title %}Create Workout{% endblock %} +{% block title %} + {% if workout %} + Edit {{ workout.name }} + {% else %} + Create Workout + {% endif %} +{% endblock %} {% block form %}
@@ -18,7 +24,9 @@
{% for entry in form.exercises.entries %} - {{ entry['id']() }} + {% if workout %} + {{ entry['id']() }} + {% endif %}
@@ -73,10 +81,14 @@
-- cgit v1.2.3