{% macro preview(source_data) %}
Prévisualisation de {{ source_data.preview_rows_nb }} ligne{% if source_data.preview_rows_nb > 1 %}s{% endif %} sur {{ source_data.rows_nb }} au total :
{{ col }} | {% endfor %}
---|
{{ val }} | {% endfor %}
Ligne | Colonne | Valeur | Erreur | {% for row in report.table.errors.body_by_rows %} {% if 'row' in row.errors %}||
---|---|---|---|---|---|
{{ row.row_id }} | {{ row.errors.row.title }} | ||||
{{ row.row_id }} | {{ source_data.header[loop.index - 1] }} | {{ d }} |
{{row.errors[loop.index].title}}{{ row.errors[loop.index].content | safe }} |
1 | {% for h in source_data.header %}{{ h }} | {% endfor %} {% for row in report.table.errors.body_by_rows %}||||
---|---|---|---|---|---|
{{ 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 %} {% for d in source_data.data_rows[row.row_id - 2] %} {% if loop.index in row.errors %}{% elif 'row' in row.errors %} | {% else %} | {% endif %} {{ d }} | {% endfor %}
Erreur de structure ({{ structure_errors['count'] }}) :
Aucune erreur de structure.
{% endif %} {% if report.table.do_display_body_errors %} {% set value_errors = report.table['error-stats']['value-errors'] %} {% if value_errors['count'] > 0 %}Erreur de contenu ({{ value_errors['count'] }} sur {{ value_errors['rows-count'] }} ligne{% if value_errors['rows-count'] > 1 %}s{% endif %}) :