From 544db333dcd6bddd2d664b8fcf0003d9edfa7a68 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 9 Dec 2024 16:12:26 -0600 Subject: Prevent user from continuing on error. --- uploader/templates/phenotypes/job-status.html | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'uploader') diff --git a/uploader/templates/phenotypes/job-status.html b/uploader/templates/phenotypes/job-status.html index 34325c5..5f13876 100644 --- a/uploader/templates/phenotypes/job-status.html +++ b/uploader/templates/phenotypes/job-status.html @@ -56,10 +56,19 @@ {%endif%} - {%if job.status in ("completed:success", "success")%} -

Continue + {%if job.status in ("completed:success", "success")%} +

+ {%if errors | length == 0%} + Continue + {%else%} + + Cannot continue due to errors. Please fix the errors first. + + {%endif%}

{%endif%} -- cgit v1.2.3