diff options
author | Frederick Muriuki Muriithi | 2022-08-04 08:51:15 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-08-04 08:51:15 +0300 |
commit | 3da6848381b6103fbb58eeab8d7051cba0bded58 (patch) | |
tree | fd20aa2d8c73638b72a7667504582f0146aa182f /qc_app/templates/insert_progress.html | |
parent | 7bd9116019afe4aed369c5dfe69496abc6867381 (diff) | |
download | gn-uploader-3da6848381b6103fbb58eeab8d7051cba0bded58.tar.gz |
Implement data insertion
- Hook up external data insertion script to webserver code
- Provide rudimentary status indication
- Generalise some job creation details
Diffstat (limited to 'qc_app/templates/insert_progress.html')
-rw-r--r-- | qc_app/templates/insert_progress.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/qc_app/templates/insert_progress.html b/qc_app/templates/insert_progress.html new file mode 100644 index 0000000..1ac6212 --- /dev/null +++ b/qc_app/templates/insert_progress.html @@ -0,0 +1,24 @@ +{%extends "base.html"%} + +{%block extrameta%} +<meta http-equiv="refresh" content="5"> +{%endblock%} + +{%block title%}Job Status{%endblock%} + +{%block contents%} +<h1 class="heading">{{job_name}}</h2> + +<label for="job_status">status:</label> +<span>{{job_status}}: {{message}}</span><br /> + +{{job}} +<label for="job_{{job_id}}">inserting: </label> +<progress id="job_{{job_id}}" value="{{(job['percent'] | float) / 100}}">{{job["percent"]}}</progress> +<span>{{"%.2f" | format(job['percent'] | float)}}%</span> + +<div> + {{job.stderr}} +</div> + +{%endblock%} |