From 2f2089f46e1a11036097923ffbb43258e3f8f540 Mon Sep 17 00:00:00 2001 From: Pierre Dittgen Date: Fri, 28 Sep 2018 09:49:55 +0200 Subject: [PATCH] Highlight cell in errors --- .../templates/validation_report.html | 38 +++++++++++-------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/validata_ui_next/templates/validation_report.html b/validata_ui_next/templates/validation_report.html index 5d8b7d6..0fb3396 100644 --- a/validata_ui_next/templates/validation_report.html +++ b/validata_ui_next/templates/validation_report.html @@ -55,23 +55,29 @@ {% if err.context == 'body' %} - - - - {% for h in report['tables'][0]['headers'] %} - - {% endfor %} - - - - - - {% for d in source_data.data_rows[err['row-number'] - 2] %} - +
+
#{{ h }}
{{ err['row-number'] - 1 }}{{ d }}
+ + + {% for h in report['tables'][0]['headers'] %} + {% endfor %} - - -
#{{ h }}
+ + + + + {{ err['row-number'] - 1 }} + {% for d in source_data.data_rows[err['row-number'] - 2] %} + {% if loop.index == err['column-number'] %} + {{ d }} + {% else %} + {{ d }} + {% endif %} + {% endfor %} + + + +

{{ err.message }}

{% endif %} -- GitLab