Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Validata
Validata UI
Commits
2f2089f4
Commit
2f2089f4
authored
Sep 28, 2018
by
Pierre Dittgen
Browse files
Highlight cell in errors
parent
64f76d5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
validata_ui_next/templates/validation_report.html
View file @
2f2089f4
...
...
@@ -55,23 +55,29 @@
{% if err.context == 'body' %}
<table
class=
"table-sm table-bordered table-striped table-hover"
>
<thead>
<th>
#
</th>
{% for h in report['tables'][0]['headers'] %}
<th>
{{ h }}
</th>
{% endfor %}
</thead>
<!-- TODO: regrouper les erreurs par ligne ? -->
<tbody>
<tr>
<td>
{{ err['row-number'] - 1 }}
</td>
{% for d in source_data.data_rows[err['row-number'] - 2] %}
<td>
{{ d }}
</td>
<div
class=
"table-responsive-sm"
>
<table
class=
"table-sm table-bordered table-striped table-hover"
>
<thead>
<th
scope=
"col"
>
#
</th>
{% for h in report['tables'][0]['headers'] %}
<th
scope=
"col"
>
{{ h }}
</th>
{% endfor %}
</tr>
</tbody>
</table>
</thead>
<!-- TODO: regrouper les erreurs par ligne ? -->
<tbody>
<tr>
<th
scope=
"row"
>
{{ err['row-number'] - 1 }}
</th>
{% for d in source_data.data_rows[err['row-number'] - 2] %}
{% if loop.index == err['column-number'] %}
<td
class=
"table-danger"
>
{{ d }}
</td>
{% else %}
<td>
{{ d }}
</td>
{% endif %}
{% endfor %}
</tr>
</tbody>
</table>
</div>
<p
class=
"text"
>
{{ err.message }}
</p>
{% endif %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment