diff --git a/InvenTree/InvenTree/static/css/inventree.css b/InvenTree/InvenTree/static/css/inventree.css index 2a1215d7a8..a1358341cc 100644 --- a/InvenTree/InvenTree/static/css/inventree.css +++ b/InvenTree/InvenTree/static/css/inventree.css @@ -384,6 +384,10 @@ padding-bottom: 2px; } +.action-button { + font-size: 125%; +} + .action-buttons .btn { font-size: 175%; align-content: center; diff --git a/InvenTree/part/templates/part/bom.html b/InvenTree/part/templates/part/bom.html index 374acc94fd..b35a0f1b5a 100644 --- a/InvenTree/part/templates/part/bom.html +++ b/InvenTree/part/templates/part/bom.html @@ -1,5 +1,6 @@ {% extends "part/part_base.html" %} {% load static %} +{% load i18n %} {% block css %} @@ -9,7 +10,7 @@ {% include 'part/tabs.html' with tab='bom' %} -

Bill of Materials

+

{% trans "Bill of Materials" %}

{% if part.has_complete_bom_pricing == False %}
@@ -33,18 +34,16 @@
{% if editing_enabled %} - - - - - - + + + + {% elif part.active %} - + {% if part.is_bom_valid == False %} - + {% endif %} - + {% endif %}
@@ -76,6 +75,10 @@ location.href = "{% url 'part-bom' part.id %}"; }); + $('#bom-upload').click(function() { + location.href = "{% url 'upload-bom' part.id %}"; + }); + $("#bom-item-new").click(function () { launchModalForm( "{% url 'bom-item-create' %}?parent={{ part.id }}",