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
fdb64d1a
Commit
fdb64d1a
authored
Oct 01, 2018
by
Pierre Dittgen
Browse files
Display error code before error message
parent
1cd04d93
Changes
1
Hide whitespace changes
Inline
Side-by-side
validata_ui_next/templates/validation_report.html
View file @
fdb64d1a
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
{% block content %}
{% block content %}
<h1>
{{ title }}
</h1>
<h1>
{{ title }}
</h1>
<!-- Schema info -->
<div
class=
"card bg-faded"
style=
"width: 30rem;"
>
<div
class=
"card bg-faded"
style=
"width: 30rem;"
>
<div
class=
"card-body"
>
<div
class=
"card-body"
>
<h5
class=
"card-title"
>
<h5
class=
"card-title"
>
...
@@ -39,7 +40,7 @@
...
@@ -39,7 +40,7 @@
<h3>
Problèmes de structure
</h3>
<h3>
Problèmes de structure
</h3>
<ul>
<ul>
{% for err in report.table.errors.structure %}
{% for err in report.table.errors.structure %}
<li>
{{ err.message }}
</li>
<li>
[{{ err.code }}]
{{ err.message }}
</li>
{% endfor %}
{% endfor %}
</ul>
</ul>
</div>
</div>
...
@@ -65,7 +66,7 @@
...
@@ -65,7 +66,7 @@
<th>
{{ row.row_id }}
</th>
<th>
{{ row.row_id }}
</th>
{% for d in source_data.data_rows[row.row_id - 2] %}
{% for d in source_data.data_rows[row.row_id - 2] %}
{% if loop.index in row.errors %}
{% if loop.index in row.errors %}
<td
class=
"table-danger"
data-toggle=
"tooltip"
title=
"{{ row.errors[loop.index].message }}"
>
<td
class=
"table-danger"
data-toggle=
"tooltip"
title=
"
[{{row.errors[loop.index].code}}]
{{ row.errors[loop.index].message }}"
>
{% else %}
{% else %}
<td>
<td>
{% endif %}
{% 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