From fdad7e1f8ee6ab86b24d79f1ec0911b432b1d416 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 3 Dec 2024 15:05:44 -0600 Subject: Improve UI: Move if check out of table Create a new section for the errors display, and only display the table if there is at least one error. --- uploader/templates/phenotypes/job-status.html | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'uploader') diff --git a/uploader/templates/phenotypes/job-status.html b/uploader/templates/phenotypes/job-status.html index cfbedd5..8ba3edf 100644 --- a/uploader/templates/phenotypes/job-status.html +++ b/uploader/templates/phenotypes/job-status.html @@ -40,9 +40,15 @@ {%endif%} -
+

Errors

+
+ {%if errors | length == 0 %} +

+ + No errors found so far +

+ {%else%} - @@ -58,17 +64,14 @@ - - {%else%} - - {%endfor%}
Errors
File{{error.rowtitle}} {{error.coltitle}} {{error.message}}
- No errors found so far.
+ {%endif%}
+
{{cli_output(job, "stdout")}}
@@ -76,6 +79,7 @@
{{cli_output(job, "stderr")}}
+ {%else%}

No Such Job

-- cgit v1.2.3