{% extends "admin/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 }} {% 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 %}{% for field in result.diff_headers %} | {{ field }} | {% endfor %}
---|---|
{% if row.import_type == 'new' %} {% trans "New" %} {% elif row.import_type == 'skip' %} {% trans "Skipped" %} {% elif row.import_type == 'delete' %} {% trans "Delete" %} {% elif row.import_type == 'update' %} {% trans "Update" %} {% endif %} | {% for field in row.diff %}{{ field }} | {% endfor %}