{% extends "part/part_base.html" %} {% load static %} {% load i18n %} {% load inventree_extras %} {% block details %} {% include "part/tabs.html" with tab="bom" %}

{% trans "Upload Bill of Materials" %}

{% trans "Step 3 - Select Parts" %}


{% if form_errors %} {% endif %}
{% csrf_token %} {% load crispy_forms_tags %} {% for col in bom_columns %} {% endfor %} {% for row in bom_rows %} {% for item in row.data %} {% endfor %} {% endfor %}
{% trans "Row" %} {% trans "Select Part" %} {% if col.guess %} {{ col.guess }} {% else %} {{ col.name }} {% endif %}
{% add row.index 1 %} {% if row.errors.part %}

{{ row.errors.part }}

{% endif %}
{% if item.column.guess == 'Part' %} {{ item.cell }} {% if row.errors.part %}

{{ row.errors.part }}

{% endif %} {% elif item.column.guess == 'Quantity' %} {% if row.errors.quantity %}

{{ row.errors.quantity }}

{% endif %} {% elif item.column.guess == 'Reference' %} {% elif item.column.guess == 'Note' %} {% elif item.column.guess == 'Overage' %} {% else %} {{ item.cell }} {% endif %}
{% endblock %} {% block js_ready %} {{ block.super }} $('.bomselect').select2({ dropdownAutoWidth: true, matcher: partialMatcher, }); {% endblock %}