Commit 5f49751a authored by Pierre Dittgen's avatar Pierre Dittgen

Remove display body errors flag

parent d2b1a80c
......@@ -124,7 +124,6 @@
<p>Aucune erreur de structure.</p>
{% endif %}
{% if report.table.do_display_body_errors %}
{% set value_errors = report.table['error-stats']['value-errors'] %}
{% if value_errors['count'] > 0 %}
<p>Erreur de contenu ({{ value_errors['count'] }} sur {{ value_errors['rows-count'] }} ligne{% if value_errors['rows-count'] > 1 %}s{% endif %}) :</p>
......@@ -136,6 +135,5 @@
{% else %}
<p>Aucune erreur de contenu</p>
{% endif %}
{% endif %}
{% endmacro %}
......@@ -139,18 +139,15 @@
{% endif %}
</div>
{% if report.table.do_display_body_errors %} {# We do display body errors! #}
<div class="mx-4">
{% if report.table.errors.body %}
<h3 class="my-4">Erreurs de contenu</h3>
{{ macros.body_errors(report, source_data, print_mode) }}
{% else %}
{{ macros.preview(source_data) }}
{% endif %}
</div>
{% else %} {# do not display errors #}
<p>Veuillez corriger ces erreurs pour visualiser les éventuelles erreurs de contenu.</p>
{% endif %}
{# Display body errors #}
<div class="mx-4">
{% if report.table.errors.body %}
<h3 class="my-4">Erreurs de contenu</h3>
{{ macros.body_errors(report, source_data, print_mode) }}
{% else %}
{{ macros.preview(source_data) }}
{% endif %}
</div>
{% endblock %}
{% block page_scripts %}
......
......@@ -244,9 +244,6 @@ def create_validata_ui_report(validata_core_report, schema_dict):
else:
report['table']['errors']['body'].append(err)
# Always displays body errors
report['table']['do_display_body_errors'] = True
# Checks if a column comparison is needed
report['table']['column_comparison_needed'] = False
......
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