Commit 98a2f2df authored by Pierre Dittgen's avatar Pierre Dittgen

Fix blank-error display

parent 7a23abac
......@@ -6,7 +6,7 @@
{% block content %}
<h1>{{ title }}</h1>
<!-- Schema info -->
{# Schema info #}
<div class="row">
<div class="col-md-5">
<div class="card bg-faded">
......@@ -41,7 +41,7 @@
{% if source_type == 'url' %}
<button class="btn btn-primary" id="btn-reload">Relancer la validation</button>
{% endif %}
<!-- table checks -->
{# table checks #}
{% if report.table.errors.structure %}
<div>
......@@ -75,10 +75,12 @@
<th class="table-danger" data-toggle="tooltip" title="{{ row.errors.row.message }}">{{
row.row_id
}}</th>
{% if row.errors.row.code == 'blank-row' %}
<td colspan="{{ report.table.col_count }}" class="table-danger" data-toggle="tooltip" title="{{ row.errors.row.message }}">
{% endif %}
{% else %}
{% if row.errors.row.code == 'blank-row' and not source_data.data_rows[row.row_id -2] %}
{% for _ in report.table.headers %}
<td class="table-danger" data-toggle="tooltip" title="{{ row.errors.row.message }}"></td>
{% endfor %}
{% endif %}
{% else %}
<th>{{ row.row_id }}</th>
{% endif %}
{% for d in source_data.data_rows[row.row_id - 2] %}
......
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