Commit a5c15f58 authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

Display missing required header as structure error.

parent a46749c9
......@@ -106,23 +106,12 @@
<div class="mx-4">
{% if report.table.errors.structure %}
<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>
{# source header display #}
<div class="mb-4">
<div class="table-responsive">
<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>
<h3 class="my-4">Erreurs de structure ({{ report.table['error-stats']['structure-errors']['count']}})</h3>
<ul>
{% for err in report.table.errors.structure %}
<li>{{ err.message | commonmark2html | safe}}</li>
{% endfor %}
</ul>
{% endif %}
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment