From 2cd8ffb24d1b7a0cad1f8681b6028998e01b0e44 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 3 Feb 2025 11:32:47 -0600 Subject: Use horizontal-form for UI Update the macro templates to use the horizontal-form paradigm to fit in with what Rob likes. --- .../populations/macro-select-population.html | 41 +++++++++++---------- .../templates/species/macro-select-species.html | 42 +++++++++++----------- 2 files changed, 44 insertions(+), 39 deletions(-) (limited to 'uploader/templates') diff --git a/uploader/templates/populations/macro-select-population.html b/uploader/templates/populations/macro-select-population.html index af4fd3a..ef74ac3 100644 --- a/uploader/templates/populations/macro-select-population.html +++ b/uploader/templates/populations/macro-select-population.html @@ -1,29 +1,32 @@ {%macro select_population_form(form_action, populations)%} -
+ Select Population
- - + + {%for family in populations%} + + {%for population in family[1]%} + + {%endfor%} + {%endfor%} - - {%endfor%} - + +
-
+
diff --git a/uploader/templates/species/macro-select-species.html b/uploader/templates/species/macro-select-species.html index dd086c0..36ed102 100644 --- a/uploader/templates/species/macro-select-species.html +++ b/uploader/templates/species/macro-select-species.html @@ -1,29 +1,31 @@ {%macro select_species_form(form_action, species)%} {%if species | length > 0%} -
+
- - + + {%for group in species%} + {{group}} + + {%for aspecies in group[1]%} + + {%endfor%} + {%endfor%} - - {%endfor%} - + +
-
+
-- cgit v1.2.3