aboutsummaryrefslogtreecommitdiff
path: root/qc_app/templates
diff options
context:
space:
mode:
Diffstat (limited to 'qc_app/templates')
-rw-r--r--qc_app/templates/job_progress.html2
-rw-r--r--qc_app/templates/parse_results.html48
2 files changed, 49 insertions, 1 deletions
diff --git a/qc_app/templates/job_progress.html b/qc_app/templates/job_progress.html
index 26dfe6f..8a9256f 100644
--- a/qc_app/templates/job_progress.html
+++ b/qc_app/templates/job_progress.html
@@ -13,7 +13,7 @@
<span>{{job_status}}: {{message}}</span><br />
<label for="job_{{job_id}}">parsing: </label>
-<progress id="job_{{job_id}}" value="{{progress}}">{{progress}}</progress>
+<progress id="job_{{job_id}}" value="{{progress/100}}">{{progress}}</progress>
<span>{{"%.2f" | format(progress)}}%</span>
{%endblock%}
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%}