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

Fix blank-error display

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