{% extends "admin/import_export/base.html" %} {% load i18n %} {% load static admin_urls %} {% comment %} Template for showing import results. * Display table with parsed data and errors (like in import.html) * If data contain no errors - show confirm form {% endcomment %} {% block extrahead %} {{ block.super }} {% if confirm_form %} {{ confirm_form.media }} {% else %} {{ import_form.media }} {% endif %} {% endblock %} {% block breadcrumbs_last %} {% trans "Import" %} › {% trans "Import results" %} {% endblock %} {% block content %} {# Confirmation form if there is no errors #} {% if confirm_form %} {% block confirm_form %}
{% endblock %} {% endif %} {# Show Import form if result contain errors #} {# form.action is to ImportJob creation #} {% if import_form %} {% endif %} {% block import_results %} {% if result.has_errors or result.has_validation_errors %}{% trans "Please correct these errors in your data where possible, then reupload it using the form above." %}
{% trans "Row" %} | {% trans "Errors" %} | {% for field in result.diff_headers %}{{ field }} | {% endfor %}
---|---|---|
{{ row.number }} |
{{ row.error_count }}
|
{% for field in row.values %}
{{ field }} | {% endfor %}
{% for field in result.diff_headers %} | {{ field }} | {% endfor %}
---|---|
{% if row.import_type == 'new' %}
{% trans "New" %}
{% elif row.import_type == 'skip' %}
{% trans "Skipped" %}
{{ row.skipped_errors_count}}
|
{% for field in row.diff %}
{{ field }} | {% endfor %}