From e0e9b129f043259fa0138865b2ef375641535981 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 24 Sep 2026 14:14:40 -0500 Subject: Add border around CSV fields in macro Add the border around the CSV fields in the macro file itself so that we have a consistent UI. --- .../genotypes/add-genotypes-records-csv.html | 8 +- uploader/templates/macro-csv-fields.html | 137 +++++++++++---------- 2 files changed, 76 insertions(+), 69 deletions(-) diff --git a/uploader/templates/genotypes/add-genotypes-records-csv.html b/uploader/templates/genotypes/add-genotypes-records-csv.html index 6ebc005..250df67 100644 --- a/uploader/templates/genotypes/add-genotypes-records-csv.html +++ b/uploader/templates/genotypes/add-genotypes-records-csv.html @@ -10,10 +10,12 @@

You can add new genotype records here.

-
-
File Details
- {{display_csv_fields()}} +{{display_csv_fields()}} +
+
File
diff --git a/uploader/templates/macro-csv-fields.html b/uploader/templates/macro-csv-fields.html index b58a6d0..7015712 100644 --- a/uploader/templates/macro-csv-fields.html +++ b/uploader/templates/macro-csv-fields.html @@ -1,80 +1,85 @@ {%macro display_csv_fields()%} -
-
- -
-
- - - - +
+
CSV Details
+
+
+ +
+
+ + + + +
+ + Provide the character that separates the fields in your file(s). It should + be the same character for all files (if more than one is provided).
+ A tab character will be assumed if you leave this field blank. See + + documentation for more information. +
- - Provide the character that separates the fields in your file(s). It should - be the same character for all files (if more than one is provided).
- A tab character will be assumed if you leave this field blank. See - - documentation for more information. -
-
-
-
- -
-
- - - - +
+
+ +
+
+ + + + +
+ + This specifies that lines that begin with the character(s) provided will be + considered comment lines and ignored in their entirety. See + + documentation for more information. +
- - This specifies that lines that begin with the character(s) provided will be - considered comment lines and ignored in their entirety. See - - documentation for more information. -
-
-
-
- -
-
- - - - +
+
+ +
+
+ + + + +
+ + This specifies strings in your file indicate that there is no value for a + particular cell (a cell is where a column and row intersect). Provide a + space-separated list of strings if you have more than one way of + indicating no values. See + + documentation for more information.
- - This specifies strings in your file indicate that there is no value for a - particular cell (a cell is where a column and row intersect). Provide a - space-separated list of strings if you have more than one way of - indicating no values. See - - documentation for more information.
{%endmacro%} -- cgit 1.4.1