{% extends "part/import_wizard/part_upload.html" %} {% load inventree_extras %} {% load i18n %} {% load static %} {% load crispy_forms_tags %} {% block form_alert %} {% if form.errors %} {% endif %} {% if form_errors %} {% endif %} {% endblock form_alert %} {% block form_buttons_top %} {% if wizard.steps.prev %} {% endif %} {% endblock form_buttons_top %} {% block form_content %} {% trans "Row" %} {% for col in columns %} {% if col.guess %} {{ col.guess }} {% else %} {{ col.name }} {% endif %} {% endfor %} {% comment %} Dummy row for javascript del_row method {% endcomment %} {% for row in rows %} {% add row.index 1 %} {% for item in row.data %} {% if item.column.guess %} {% with row_name=item.column.guess|lower %} {% for field in form.visible_fields %} {% if field.name == row|keyvalue:row_name %} {{ field|as_crispy_field }} {% endif %} {% endfor %} {% endwith %} {% else %} {{ item.cell }} {% endif %} {% endfor %} {% endfor %} {% endblock form_content %} {% block form_buttons_bottom %} {% endblock form_buttons_bottom %} {% block js_ready %} {{ block.super }} $('.bomselect').select2({ dropdownAutoWidth: true, matcher: partialMatcher, }); $('.currencyselect').select2({ dropdownAutoWidth: true, }); {% endblock js_ready %}