From fc5682f5657c788904e0404e28e58e5daae8f5cc Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 2 Jul 2019 19:20:45 +1000 Subject: [PATCH] Form is now fully transferred to a formview --- InvenTree/part/bom.py | 2 +- InvenTree/part/templates/part/bom.html | 5 ---- .../part/bom_upload/select_fields.html | 19 +++++++----- .../part/bom_upload/upload_file.html | 5 +++- InvenTree/part/views.py | 29 ++++++++++++++----- InvenTree/templates/base.html | 1 + 6 files changed, 40 insertions(+), 21 deletions(-) diff --git a/InvenTree/part/bom.py b/InvenTree/part/bom.py index 70cea0601b..79d1bc9e5d 100644 --- a/InvenTree/part/bom.py +++ b/InvenTree/part/bom.py @@ -122,7 +122,7 @@ class BomUploadManager: return None - def get_headers(self): + def columns(self): """ Return a list of headers for the thingy """ headers = [] diff --git a/InvenTree/part/templates/part/bom.html b/InvenTree/part/templates/part/bom.html index ea99c16323..3d61e24e2a 100644 --- a/InvenTree/part/templates/part/bom.html +++ b/InvenTree/part/templates/part/bom.html @@ -62,11 +62,6 @@ {% endblock %} -{% block js_load %} -{{ block.super }} - -{% endblock %} - {% block js_ready %} {{ block.super }} diff --git a/InvenTree/part/templates/part/bom_upload/select_fields.html b/InvenTree/part/templates/part/bom_upload/select_fields.html index ad90530ad8..c423d7b0c1 100644 --- a/InvenTree/part/templates/part/bom_upload/select_fields.html +++ b/InvenTree/part/templates/part/bom_upload/select_fields.html @@ -1,16 +1,20 @@ -{% extends "modal_form.html" %} +{% extends "part/part_base.html" %} +{% load static %} {% load inventree_extras %} -{% block form %} +{% block details %} +{% include "part/tabs.html" with tab='bom' %} +

Upload Bill of Materials

-

Step 2 of 3 - Select BOM Fields

+

Step 2 - Select Fields

+
{% if missing and missing|length > 0 %}