{% 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 %}

{{ row_count }} row{{ row_count|pluralize }} ready to import. {% if parent_part %} {% if adds_to_parent_part %}Adding to{% else %}Replacing{% endif %} the BOM of {{ parent_part.full_part_number }}. {% endif %} Nothing is saved until you confirm. {% if not assembly_changes %}This upload doesn't change any BOMs.{% endif %}

{% endif %} {% if warnings %}
{% endif %}
{% csrf_token %} {% if token %} {% else %} Back {% endif %}
{% for assembly in assembly_changes %}
{{ assembly.part_number }} Rev {{ assembly.revision }} · {{ assembly.synopsis }}
{% if assembly.is_new %}

New assembly.

{% elif assembly.used_in_count > 1 %}

Used in {{ assembly.used_in_count }} assemblies. These changes apply to all of them.

{% endif %} {% regroup assembly.lines by change as lines_by_change %} {% for group in lines_by_change %} {% if group.grouper == 'added' %}
{{ group.list|length }} line{{ group.list|length|pluralize }} added {% include 'bom/components/upload-bom-preview-lines.html' with lines=group.list %}
{% else %}

{{ group.list|length }} line{{ group.list|length|pluralize }} {{ group.grouper }}

{% include 'bom/components/upload-bom-preview-lines.html' with lines=group.list %} {% endif %} {% endfor %}
{% endfor %} {% if parts_created or revisions_created or manufacturers_created %}
Parts
{% endif %} {% if parts_created %}
{{ parts_created|length }} new part{{ parts_created|length|pluralize }}
{% endif %} {% if revisions_created %}
{{ revisions_created|length }} new revision{{ revisions_created|length|pluralize }}
{% endif %} {% if manufacturers_created %}
{{ manufacturers_created|length }} new manufacturer{{ manufacturers_created|length|pluralize }}
{% endif %}
{% endblock %}