{% extends 'bom/bom-base.html' %} {% block head-title %}{{ title }}{% endblock %} {% block bom-menu %}{% endblock %} {% block content %}
{% if notice %}
{{ notice }}
{% endif %} {% if errors %}

Fix these rows and upload the file again. Nothing has been saved.

{% else %}

{% if summary %}{{ summary }}{% else %}{{ row_count }} row{{ row_count|pluralize }} ready to import.{% endif %} {% if preview_summary_component %}{% include preview_summary_component %}{% endif %} Nothing is saved until you confirm.

{% endif %} {% if warnings %}
{% endif %}
{% csrf_token %} {% if token %} {% else %} Back {% endif %}
{% if preview_component %}{% include preview_component %}{% endif %} {% if changes.created %}
{{ changes.created|length }} row{{ changes.created|length|pluralize }} created
{% endif %} {% if changes.updated %}
{{ changes.updated|length }} row{{ changes.updated|length|pluralize }} updated
{% for row in changes.updated %} {% for field_name, values in row.fields.items %} {% endfor %} {% endfor %}
Row Field Change
{% if forloop.first %}{{ row.identifier }}{% endif %} {{ field_name }} {{ values.0|default:"–" }} → {{ values.1|default:"–" }}
{% endif %} {% if changes.unchanged %}

{{ changes.unchanged }} row{{ changes.unchanged|pluralize }} unchanged.

{% endif %}
{% endblock %}