aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/phenotypes/job-status.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-12-09 16:12:26 -0600
committerFrederick Muriuki Muriithi2024-12-09 16:12:26 -0600
commit544db333dcd6bddd2d664b8fcf0003d9edfa7a68 (patch)
treecb788d0e59d33308dbf3d579b90c04147550dce1 /uploader/templates/phenotypes/job-status.html
parent47fdae91413522b8a67247c3f7113f925fad8dc7 (diff)
downloadgn-uploader-main.tar.gz
Prevent user from continuing on error.HEADmain
Diffstat (limited to 'uploader/templates/phenotypes/job-status.html')
-rw-r--r--uploader/templates/phenotypes/job-status.html17
1 files changed, 13 insertions, 4 deletions
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 @@
</tbody>
</table>
{%endif%}
- {%if job.status in ("completed:success", "success")%}
- <p><a href="#"
- class="not-implemented btn btn-primary"
- title="Continue to process data">Continue</a>
+ {%if job.status in ("completed:success", "success")%}
+ <p>
+ {%if errors | length == 0%}
+ <a href="#"
+ class="not-implemented btn btn-primary"
+ title="Continue to process data">Continue</a>
+ {%else%}
+ <span class="text-muted"
+ disabled="disabled"
+ style="border: solid 2px;border-radius: 5px;padding: 0.3em;">
+ Cannot continue due to errors. Please fix the errors first.
+ </a>
+ {%endif%}
</p>
{%endif%}
</div>