diff options
author | Frederick Muriuki Muriithi | 2023-01-17 11:30:21 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-01-17 11:30:21 +0300 |
commit | ee7fbec479b1410b366fe0b61221c001673ab44e (patch) | |
tree | f34534241311e70b40f375f288c7ac2b6b97ca96 | |
parent | 9daa00bc10f8199145cf5952382512f4db95aa4a (diff) | |
download | gn-uploader-ee7fbec479b1410b366fe0b61221c001673ab44e.tar.gz |
Add link back to index page on abort or errors
-rw-r--r-- | qc_app/templates/parse_results.html | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/qc_app/templates/parse_results.html b/qc_app/templates/parse_results.html index ec19812..d78bae6 100644 --- a/qc_app/templates/parse_results.html +++ b/qc_app/templates/parse_results.html @@ -12,11 +12,19 @@ {{errors_display(errors, "No errors found in the file", "We found the following errors", True)}} -{%if errors | length == 0 %} +{%if errors | length == 0 and not user_aborted %} <form method="post" action="{{url_for('dbinsert.select_platform')}}"> <input type="hidden" name="job_id" value="{{job_id}}" /> <input type="submit" value="update database" class="btn btn-main" /> </form> {%endif%} +{%if errors | length > 0 or user_aborted %} +<br /> +<a href="{{url_for('entry.upload_file')}}" title="Back to index page." + class="btn btn-main"> + Go back +</a> +{%endif%} + {%endblock%} |