From 9c2d95fd61a0e8a6dc2dfd0e10b98e8a8d033955 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Fri, 14 Jul 2023 22:20:46 +1000 Subject: [PATCH] Improve styling on settings page and add search for exercises/people --- templates/partials/exercise.html | 61 ++++++++++++------ templates/partials/page/settings.html | 92 ++++++++++++++++++++++++--- templates/partials/person.html | 61 ++++++++++++------ 3 files changed, 168 insertions(+), 46 deletions(-) diff --git a/templates/partials/exercise.html b/templates/partials/exercise.html index b335b95..e070554 100644 --- a/templates/partials/exercise.html +++ b/templates/partials/exercise.html @@ -8,26 +8,51 @@ type="text" name="name" value="{{ name }}"> {% endif %} - + {% if is_edit|default(false, true) == false %} - - Edit - - - Remove - + + {% else %} - - Update - - - Cancel - + + + {% endif %} diff --git a/templates/partials/page/settings.html b/templates/partials/page/settings.html index ff31a77..0365ed3 100644 --- a/templates/partials/page/settings.html +++ b/templates/partials/page/settings.html @@ -1,5 +1,5 @@
-
+

Users

@@ -7,9 +7,9 @@
-
+
-
+
@@ -19,6 +19,23 @@ @@ -29,6 +46,25 @@ name=p['Name'])}} {% endfor %} +
+
+
+ +
+ + +
@@ -64,7 +100,7 @@
-
+

Exercises

@@ -72,18 +108,35 @@
-
-
-
+
+
+
@@ -94,13 +147,32 @@ name=e['Name'])}} {% endfor %} +
+ class="p-4 text-left text-xs font-medium text-gray-500 uppercase tracking-wider w-1/4"> Name + class="p-4 text-left text-xs font-medium text-gray-500 uppercase tracking-wider w-3/4"> +
+
+ +
+ + +
-
diff --git a/templates/partials/person.html b/templates/partials/person.html index ca13ce8..230a289 100644 --- a/templates/partials/person.html +++ b/templates/partials/person.html @@ -8,26 +8,51 @@ type="text" name="name" value="{{ name }}"> {% endif %} - + {% if is_edit|default(false, true) == false %} - - Edit - - - Remove - + + {% else %} - - Update - - - Cancel - + + + {% endif %}