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 @@ ...@@ -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>
......
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