{% macro thead(report, with_lineno_col=False) %}
{% if with_lineno_col %}
{% endmacro %}
{% macro preview(report, source_data) %}
1
{% endif %}
{% for h in report.table.header %}
{{ h }}
{% endfor %}
{{ val }} | {% endfor %}
{{ row.row_id }} | {% if row.errors.row.code == 'blank-row' and not source_data.data_rows[row.row_id -2] %} {% for _ in report.table.headers %}{% endfor %} {% endif %} {% else %} | {{ row.row_id }} | {% endif %} {# normal columns #} {% for d in source_data.data_rows[row.row_id - 2] %} {% if loop.index in row.errors %}{{ d }} | {% elif 'row' in row.errors %}{{ d }} | {% else %}{{ d }} | {% endif %} {%- endfor %}
---|
{{ _('Erreurs de structure') }} ({{ structure_errors['count'] }}) :
{{ _('Aucune erreur de structure') }}.
{% endif %} {% set value_errors = report.table['error-stats']['body-errors'] %} {% if value_errors['count'] > 0 %}Erreurs de contenu ({{ value_errors['count'] }} sur {{ value_errors['rows-count'] }} ligne{% if value_errors['rows-count'] > 1 %}s{% endif %}) :
{{ _('Aucune erreur de contenu') }}
{% endif %} {% endmacro %}