From ceb76e7b1d75623b09a9c85a3e48752404a9077d Mon Sep 17 00:00:00 2001 From: stilbruch Date: Sat, 23 Apr 2022 17:08:53 -0500 Subject: Work on exercise type support for create workout --- app/templates/base/form.html | 20 +++---- app/templates/workout/create.html | 114 ++++++++++++++++++++------------------ 2 files changed, 71 insertions(+), 63 deletions(-) (limited to 'app/templates') diff --git a/app/templates/base/form.html b/app/templates/base/form.html index 9f356e0..98200c9 100644 --- a/app/templates/base/form.html +++ b/app/templates/base/form.html @@ -8,17 +8,17 @@ {% with messages = get_flashed_messages(with_categories=true) %} - {% if messages %} - {% for category, message in messages %} - {% if category == "message" %} -
- {% else %} -
+ {% if messages %} + {% for category, message in messages %} + {% if category == "message" %} +
+ {% else %} +
+ {% endif %} + {{ message }} +
+ {% endfor %} {% endif %} - {{ message }} -
- {% endfor %} - {% endif %} {% endwith %}
diff --git a/app/templates/workout/create.html b/app/templates/workout/create.html index d5178fc..88095f7 100644 --- a/app/templates/workout/create.html +++ b/app/templates/workout/create.html @@ -1,5 +1,7 @@ {% extends 'base/form.html' %} +{% block title %}Create Workout{% endblock %} + {% block form %}
@@ -12,67 +14,73 @@
-
{% for entry in form.exercises.entries %}
-
-
-

+ +

+ {% for entry in form.exercises.entries %} +
+
+
+

- - - -

-

- - - - -

-
-
-

- - - - -

-
-
-
-
- -
-
- -
-
- + + + +

+

+ + + + +

+
+
+

+ + + + +

+
+
+
+
+ +
+
+ +
-

- - - -

+
+

+ + + +

+
{% endfor %}
+
-

- - - -

+

+ + + +

+
- +
- + + {% endblock %} -- cgit v1.2.3