diff options
author | Frederick Muriuki Muriithi | 2022-06-02 12:57:18 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-06-02 12:57:18 +0300 |
commit | 2f84b2eb1fecab4c381ad2dfd31277717cc9df2d (patch) | |
tree | c8a9080401ba40869454f55c88cd359bdbc393dd /qc_app/templates | |
parent | 219248568252e7291f20105ce589c87c5a85f433 (diff) | |
download | gn-uploader-2f84b2eb1fecab4c381ad2dfd31277717cc9df2d.tar.gz |
Enable user abortion of file parsing
Enable the user to abort the background parsing of the file.
Diffstat (limited to 'qc_app/templates')
-rw-r--r-- | qc_app/templates/job_progress.html | 7 | ||||
-rw-r--r-- | qc_app/templates/parse_results.html | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/qc_app/templates/job_progress.html b/qc_app/templates/job_progress.html index accdc1c..acced9b 100644 --- a/qc_app/templates/job_progress.html +++ b/qc_app/templates/job_progress.html @@ -18,6 +18,13 @@ <span>{{"%.2f" | format(progress)}}%</span> <div> + <form action="{{url_for('parse.abort')}}" method="POST"> + <input type="hidden" name="job_id" value="{{job_id}}" /> + <input type="submit" value="Abort" class="btn btn-danger" /> + </form> +</div> + +<div> {{errors_display(errors, "No errors found so far", "We have found the following errors so far")}} </div> diff --git a/qc_app/templates/parse_results.html b/qc_app/templates/parse_results.html index 8d39359..358c5e8 100644 --- a/qc_app/templates/parse_results.html +++ b/qc_app/templates/parse_results.html @@ -6,6 +6,10 @@ {%block contents%} <h1 class="heading">{{job_name}}: parse results</h2> +{%if user_aborted%} +<span class="alert-warning">Job aborted by the user</span> +{%endif%} + {{errors_display(errors, "No errors found in the file", "We found the following errors")}} {%endblock%} |