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
a5c15f58
Commit
a5c15f58
authored
Jan 26, 2021
by
Pierre Dittgen
Browse files
Display missing required header as structure error.
parent
a46749c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
validata_ui/templates/validation_report.html
View file @
a5c15f58
...
@@ -106,23 +106,12 @@
...
@@ -106,23 +106,12 @@
<div
class=
"mx-4"
>
<div
class=
"mx-4"
>
{% if report.table.errors.structure %}
{% if report.table.errors.structure %}
<h3
class=
"my-4"
>
Erreurs de structure ({{ report.table['error-stats']['structure-errors']['count'] }})
</h3>
<h3
class=
"my-4"
>
Erreurs de structure ({{ report.table['error-stats']['structure-errors']['count']}})
</h3>
<p>
Prévisualisation du fichier source avec structure invalide (en-têtes)
</p>
<ul>
{% for err in report.table.errors.structure %}
{# source header display #}
<li>
{{ err.message | commonmark2html | safe}}
</li>
<div
class=
"mb-4"
>
{% endfor %}
<div
class=
"table-responsive"
>
</ul>
<table
class=
"table table-striped table-bordered table-sm table-hover"
>
<thead
class=
"thead-light"
>
<tr>
{% for h, err in source_data.source_header_info %}
<th
{%
if
err
%}
class=
"table-danger"
{%
endif
%}
>
{{ h }}
</th>
{% endfor %}
</tr>
</thead>
</table>
</div>
</div>
{% endif %}
{% endif %}
</div>
</div>
...
...
Write
Preview
Supports
Markdown
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