{# SPDX-License-Identifier: Apache-2.0 #} {# Copyright (C) 2025 Marcin Zieba #} {% extends 'base/layout.html' %} {% block title %}Import Results{% endblock %} {% block content %}
{% if execution.outcome == 'succeeded' %} Import Complete {% elif execution.outcome == 'failed' %} Import Failed {% else %} Import Pending {% endif %}
Execution #{{ execution.pk }}
{% if execution.outcome == 'succeeded' %}

Applied {{ execution.applied_changes.changes|length|default:0 }} planned change{{ execution.applied_changes.changes|length|default:0|pluralize }} in one transaction.

{% elif execution.failure_detail %}
{{ execution.failure_detail.reason|default:'Import failed' }} {% if execution.failure_detail.failed_change %}
Failed change: {{ execution.failure_detail.failed_change }}
{% endif %}
{% endif %}
Import Profile
{{ execution.profile|default:'Deleted profile' }}
Source
{{ execution.source_document.filename|default:'Stored source' }}
Outcome
{{ execution.get_outcome_display }}
New Import
{% endblock %}