Fix BOM upload form

This commit is contained in:
Oliver 2021-07-15 23:14:40 +10:00
parent 09d175f7cf
commit e116ef9a8b
3 changed files with 9 additions and 10 deletions

View File

@ -3,15 +3,13 @@
{% load i18n %} {% load i18n %}
{% load inventree_extras %} {% load inventree_extras %}
{% block menubar %}
{% include "part/navbar.html" with tab='bom' %}
{% endblock %}
{% block heading %} {% block heading %}
{% trans "Upload BOM File" %} {% trans "Upload BOM File" %}
{% endblock %} {% endblock %}
{% block details %} {% block page_content %}
<h4>{% trans "Upload Bill of Materials" %}</h4>
{% block form_alert %} {% block form_alert %}
<div class='alert alert-info alert-block'> <div class='alert alert-info alert-block'>

View File

@ -335,6 +335,12 @@
{% block js_ready %} {% block js_ready %}
{{ block.super }} {{ block.super }}
enableNavbar({
label: 'part',
toggleId: '#part-menu-toggle',
});
loadBuildOrderAllocationTable("#build-order-allocation-table", { loadBuildOrderAllocationTable("#build-order-allocation-table", {
params: { params: {
part: {{ part.id }}, part: {{ part.id }},

View File

@ -253,11 +253,6 @@
{% block js_ready %} {% block js_ready %}
{{ block.super }} {{ block.super }}
enableNavbar({
label: 'part',
toggleId: '#part-menu-toggle',
});
{% if part.image %} {% if part.image %}
$('#part-thumb').click(function() { $('#part-thumb').click(function() {
showModalImage('{{ part.image.url }}'); showModalImage('{{ part.image.url }}');