From e68c807e6598a4087d7c83510ba33c81139f5544 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 28 Jun 2022 15:20:54 +0300 Subject: Check for inconsistent columns The number columns in each contents line should be equal to the nember of columns in the header line. --- qc_app/templates/errors_display.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'qc_app/templates/errors_display.html') 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 @@ {%if isinvalidvalue(error):%} {{error.column}} - {%else: %} + {%elif isduplicateheading(error): %} {{error.columns}} + {%else: %} + - {%endif %} {%if isinvalidvalue(error):%} Invalid Value - {%else: %} + {%elif isduplicateheading(error): %} Duplicate Header + {%else%} + Inconsistent Columns {%endif %} {{error["message"]}} -- cgit v1.2.3