{% macro preview(source_data) %}

Affichage de {{ source_data.preview_rows_nb }} lignes sur {{ source_data.rows_nb }} au total

{% for col in source_data.header %} {% endfor %} {% for row in source_data.preview_rows %} {% for val in row %} {% endfor %} {% endfor %}
{{ col }}
{{ val }}
{% endmacro %} {% macro body_errors(report, source_data) %}

Problèmes de contenu

{% for h in report.table.headers %} {% endfor %} {% for row in report.table.errors.by_rows %} {% if 'row' in row.errors %} {% 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 %} {% endif %} {% for d in source_data.data_rows[row.row_id - 2] %} {% if loop.index in row.errors %} {% endfor %} {% endfor %}
1{{ h }}
{{ row.row_id }} {{ row.row_id }} {% elif 'row' in row.errors %} {% else %} {% endif %} {{ d }}
{% endmacro %}