From 31f738cfb3be0bc2a97ce68cc2bf465d203e22bd Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Sun, 8 Feb 2026 16:23:31 +1100 Subject: [PATCH] Improve look of exercise list in settings page --- templates/partials/exercise.html | 120 +++++++++++++++++-------------- templates/partials/person.html | 92 ++++++++++++------------ templates/settings.html | 42 ++++++----- 3 files changed, 135 insertions(+), 119 deletions(-) diff --git a/templates/partials/exercise.html b/templates/partials/exercise.html index ee4ee49..72edcd5 100644 --- a/templates/partials/exercise.html +++ b/templates/partials/exercise.html @@ -1,19 +1,30 @@ - - + + {% if is_edit|default(false, true) == false %} - {{ name }} +
+ {{ name }} + +
+ {% for attr in attributes %} + + {{ attr.attribute_name }} + + {% endfor %} +
+
{% else %} {% endif %} - + {% if is_edit|default(false, true) == false %}
{% for attr in attributes %} {{ attr.attribute_name }} @@ -22,8 +33,8 @@ {% else %}
{% for cat_name, options in all_attributes.items() %} -
- +
+ {{ render_partial('partials/custom_select.html', name='attribute_ids', options=options, @@ -36,52 +47,53 @@
{% endif %} - - {% if is_edit|default(false, true) == false %} - - - {% else %} - - - - {% endif %} + +
+ {% if is_edit|default(false, true) == false %} + + + {% else %} + + + {% endif %} +
\ No newline at end of file diff --git a/templates/partials/person.html b/templates/partials/person.html index 030f12b..b01c225 100644 --- a/templates/partials/person.html +++ b/templates/partials/person.html @@ -8,52 +8,52 @@ type="text" name="name" value="{{ name }}"> {% endif %} - - {% if is_edit|default(false, true) == false %} - - - {% else %} - - - - {% endif %} + +
+ {% if is_edit|default(false, true) == false %} + + + {% else %} + + + {% endif %} +
\ No newline at end of file diff --git a/templates/settings.html b/templates/settings.html index a633c4f..cd5ed38 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -169,19 +169,19 @@ - Name + class="p-4 text-left text-xs font-semibold text-gray-500 uppercase tracking-wider"> + Exercise Name + class="p-4 text-left text-xs font-semibold text-gray-500 uppercase tracking-wider hidden sm:table-cell"> Attributes + class="p-4 text-right text-xs font-semibold text-gray-500 uppercase tracking-wider">
-
- {% for exercise in exercises %} {{ render_partial('partials/exercise.html', exercise_id=exercise.exercise_id, @@ -210,29 +210,33 @@
-
-

Add New Exercise

-
+
+

Add New Exercise

+

Create a new exercise with specific muscle groups and equipment. +

+
+ + -
+
-
-
+
{% for cat_name, options in all_attributes.items() %}
-
-
+