aboutsummaryrefslogtreecommitdiff
path: root/qc_app/templates
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-06-28 15:20:54 +0300
committerFrederick Muriuki Muriithi2022-06-28 15:20:54 +0300
commite68c807e6598a4087d7c83510ba33c81139f5544 (patch)
tree1c8d52c686e64cf8751f51d85bf8164ff8b9653c /qc_app/templates
parent3eef6d582245c80e274c9e135028de90788a712b (diff)
downloadgn-uploader-e68c807e6598a4087d7c83510ba33c81139f5544.tar.gz
Check for inconsistent columns
The number columns in each contents line should be equal to the nember of columns in the header line.
Diffstat (limited to 'qc_app/templates')
-rw-r--r--qc_app/templates/errors_display.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/qc_app/templates/errors_display.html b/qc_app/templates/errors_display.html
index 0c9a212..39144a9 100644
--- a/qc_app/templates/errors_display.html
+++ b/qc_app/templates/errors_display.html
@@ -22,15 +22,19 @@
<td>
{%if isinvalidvalue(error):%}
{{error.column}}
- {%else: %}
+ {%elif isduplicateheading(error): %}
{{error.columns}}
+ {%else: %}
+ -
{%endif %}
</td>
<td>
{%if isinvalidvalue(error):%}
Invalid Value
- {%else: %}
+ {%elif isduplicateheading(error): %}
Duplicate Header
+ {%else%}
+ Inconsistent Columns
{%endif %}
</td>
<td>{{error["message"]}}</td>