{% extends "base_template.html" %} {% import 'schema_info_macros.html' as schema_info_macros %} {% import 'validation_macros.html' as macros %} {% block title %}{{ section_title }} – {{ schema_info.title }}{% endblock %} {% block head %} {{ super() }} {% endblock %} {% block content %}

{{ _('Validation effectuée') }} {{ validation_date }}

{# Schema info #}
{{ schema_info_macros.html(schema_info, None, None, schema_current_version, doc_url) }}
{# Validation stats #}

{{ _('Fichier') }} {% if report.stats.errors == 0 %} {% if report.stats.warnings != 0 %}partiellement{% endif %} {{ _('valide' ) }} {% else %} {{ _('invalide') }} {% endif %}

{% if display_badge %}

{{ badge_msg }}

{% endif %}

{% if resource.type == 'file' %} {{ resource.filename }} {% elif resource.type == 'url' %} {{resource.filename}} {% endif %} ({{ report.stats.fields }} colonnes × {{ report.stats.rows }} lignes)

{% if report.stats.warnings != 0 %}

{% if report.stats.warnings == 1 %} {{ _('1 recommandation') }} {% else %} {{ report.warn_count }} {{ _('recommandations') }} {% endif %}

{% endif %} {% if report.stats.errors == 0 %}

{{ _('Aucune erreur détectée') }}

{% else %} {{ macros.error_statistics(report) }}

{% set error_count = report.stats.errors %} {{ _('Total') }} : {% if error_count == 1 %} {{ _('1 erreur détectée') }} {% else %} {{ error_count }} {{ _('erreurs détectées') }} {% endif %}

{% endif %}
{% if report.stats.warnings != 0 %}

{{ _('Recommandations') }}

{{ _("Afin d'assurer la conformité optimale de vos données par rapport au schéma, merci de prendre en compte les recommandations ci-dessous") }} :

{% endif %} {% if report.structure_errors %}

{{ _('Erreurs de structure') }} ({{ report.error_stats['structure-errors']['count']}})

{% endif %} {# Display body errors #}

{% if report.body_errors %} {% set value_errors = report.error_stats['body-errors'] %} Erreurs de contenu ({{ value_errors['count'] }} sur {{ value_errors['rows-count'] }} ligne{% if value_errors['rows-count'] > 1 %}s{% endif %}) {% else %} {% if report.structure_errors %} {{ _('Aucune erreur de contenu') }} {% else %} {{ _('Aucune erreur détectée') }} {% endif %} {% endif %}

Prévisualisation du fichier source {% if not report.body_errors %} (affichage de {{ source_data.preview_rows_count }} ligne{% if source_data.preview_rows_count > 1 %}s{% endif %} sur {{ source_data.rows_nb }} au total) {% endif %}

{% if report.body_errors %} {{ macros.body_errors(report, source_data, print_mode) }} {% else %} {{ macros.preview(report, source_data) }} {% endif %}
{% endblock %} {% block page_scripts %} {% endblock %}