diff options
author | Frederick Muriuki Muriithi | 2022-05-19 15:26:15 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-05-19 15:30:20 +0300 |
commit | 2abe10ea8ac059d7cab83895bb5d2ec6d4a6ce1c (patch) | |
tree | 9e0fdcc010925a9f6d5674d41991b6185aea54e3 /qc_app/templates/parse_results.html | |
parent | 27f6e9e28f2a3244bdd00336cf918de97b2ceed6 (diff) | |
download | gn-uploader-2abe10ea8ac059d7cab83895bb5d2ec6d4a6ce1c.tar.gz |
Update Web-UI: use new error collection paradigm
- README.org: document how to run scripts manually
- manifest.scm: remove python-rq as a dependency
- qc_app/jobs.py: rework job launching and processing
- qc_app/parse.py: use reworked job processing
- qc_app/templates/job_progress.html: display progress correctly
- qc_app/templates/parse_results.html: display final results
- scripts/worker.py: new worker script
Diffstat (limited to 'qc_app/templates/parse_results.html')
-rw-r--r-- | qc_app/templates/parse_results.html | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/qc_app/templates/parse_results.html b/qc_app/templates/parse_results.html new file mode 100644 index 0000000..a750bb5 --- /dev/null +++ b/qc_app/templates/parse_results.html @@ -0,0 +1,48 @@ +{%extends "base.html"%} + +{%block title%}Parse Results{%endblock%} + +{%block contents%} +<h1 class="heading">{{job_name}}: parse results</h2> + +{%if errors | length == 0 %} +<span class="alert-success">No errors found in the file</span> +{%else %} +<p class="alert-error">We found the following errors</p> + +<table class="reports-table"> + <thead> + <tr> + <th>line number</th> + <th>column(s)</th> + <th>error</th> + <th>error message</th> + </tr> + </thead> + + <tbody> + {%for error in errors%} + <tr> + <td>{{error["line"]}}</td> + <td> + {%if isinvalidvalue(error):%} + {{error.column}} + {%else: %} + {{error.columns}} + {%endif %} + </td> + <td> + {%if isinvalidvalue(error):%} + Invalid Value + {%else: %} + Duplicate Header + {%endif %} + </td> + <td>{{error["message"]}}</td> + </tr> + {%endfor%} + </tbody> +</table> +{%endif%} + +{%endblock%} |