diff --git a/InvenTree/build/templates/build/allocate.html b/InvenTree/build/templates/build/allocate.html index aa45aa5054..6efde49308 100644 --- a/InvenTree/build/templates/build/allocate.html +++ b/InvenTree/build/templates/build/allocate.html @@ -7,14 +7,15 @@ InvenTree | Allocate Parts {% endblock %} +{% block menubar %} +{% include "build/navbar.html" with tab='allocate' %} +{% endblock %} + +{% block heading %} +{% trans "Incomplete Build Ouputs" %} +{% endblock %} + {% block details %} - -{% include "build/tabs.html" with tab='allocate' %} - -

{% trans "Incomplete Build Ouputs" %}

- -
- {% if build.is_complete %}
{% trans "Build order has been completed" %} diff --git a/InvenTree/build/templates/build/attachments.html b/InvenTree/build/templates/build/attachments.html index a2dde0868c..8546ab42f5 100644 --- a/InvenTree/build/templates/build/attachments.html +++ b/InvenTree/build/templates/build/attachments.html @@ -4,13 +4,15 @@ {% load i18n %} {% load markdownify %} +{% block menubar %} +{% include "build/navbar.html" with tab='attachments' %} +{% endblock %} + +{% block heading %} +{% trans "Attachments" %} +{% endblock %} + {% block details %} - -{% include "build/tabs.html" with tab='attachments' %} - -

{% trans "Attachments" %}

-
- {% include "attachment_table.html" with attachments=build.attachments.all %} {% endblock %} diff --git a/InvenTree/build/templates/build/build_base.html b/InvenTree/build/templates/build/build_base.html index fab9eb8353..af11bbba97 100644 --- a/InvenTree/build/templates/build/build_base.html +++ b/InvenTree/build/templates/build/build_base.html @@ -148,6 +148,10 @@ src="{% static 'img/blank_image.png' %}" {% block js_ready %} +enableRightNavbar({ + minWidth: '50px' +}); + $("#build-edit").click(function () { launchModalForm("{% url 'build-edit' build.id %}", { diff --git a/InvenTree/build/templates/build/build_children.html b/InvenTree/build/templates/build/build_children.html index c996aaa84f..034bc6d98f 100644 --- a/InvenTree/build/templates/build/build_children.html +++ b/InvenTree/build/templates/build/build_children.html @@ -2,14 +2,16 @@ {% load static %} {% load i18n %} +{% block menubar %} +{% include "build/navbar.html" with tab="children" %} +{% endblock %} + +{% block heading %} +{% trans "Child Build Orders" %} +{% endblock %} + + {% block details %} - -{% include "build/tabs.html" with tab="children" %} - -

{% trans "Child Build Orders" %}

- -
-
diff --git a/InvenTree/build/templates/build/build_output.html b/InvenTree/build/templates/build/build_output.html index 75257f2d5d..9a077524d4 100644 --- a/InvenTree/build/templates/build/build_output.html +++ b/InvenTree/build/templates/build/build_output.html @@ -2,13 +2,16 @@ {% load static %} {% load i18n %} +{% block menubar %} +{% include "build/navbar.html" with tab='output' %} +{% endblock %} + +{% block heading %} +{% trans "Build Outputs" %} +{% endblock %} + {% block details %} -{% include "build/tabs.html" with tab='output' %} - -

{% trans "Build Outputs" %}

-
- {% include "stock_table.html" with read_only=True %} {% endblock %} diff --git a/InvenTree/build/templates/build/detail.html b/InvenTree/build/templates/build/detail.html index 5e56990c3e..9bc1dd77cc 100644 --- a/InvenTree/build/templates/build/detail.html +++ b/InvenTree/build/templates/build/detail.html @@ -3,14 +3,15 @@ {% load i18n %} {% load status_codes %} +{% block menubar %} +{% include "build/navbar.html" with tab='details' %} +{% endblock %} + +{% block heading %} +{% trans "Build Details" %} +{% endblock %} + {% block details %} - -{% include "build/tabs.html" with tab='details' %} - -

{% trans "Build Details" %}

- -
-
diff --git a/InvenTree/build/templates/build/navbar.html b/InvenTree/build/templates/build/navbar.html new file mode 100644 index 0000000000..5e27010861 --- /dev/null +++ b/InvenTree/build/templates/build/navbar.html @@ -0,0 +1,64 @@ +{% load i18n %} +{% load static %} +{% load inventree_extras %} + + + diff --git a/InvenTree/build/templates/build/notes.html b/InvenTree/build/templates/build/notes.html index f54172ac21..a7a4677c96 100644 --- a/InvenTree/build/templates/build/notes.html +++ b/InvenTree/build/templates/build/notes.html @@ -4,13 +4,16 @@ {% load i18n %} {% load markdownify %} +{% block menubar %} +{% include "build/navbar.html" with tab='notes' %} +{% endblock %} + +{% block heading %} +{% trans "Build Notes" %} +{% endblock %} + {% block details %} - -{% include "build/tabs.html" with tab='notes' %} - - {% if editing %} -

{% trans "Build Notes" %}


{% csrf_token %} @@ -24,21 +27,9 @@ {{ form.media }} {% else %} + -
-
-

{% trans "Build Notes" %}

-
-
- -
-
-
-
-
- {{ build.notes | markdownify }} -
-
+{{ build.notes | markdownify }} {% endif %} {% endblock %} diff --git a/InvenTree/build/templates/build/parts.html b/InvenTree/build/templates/build/parts.html index 3b80cf551b..f24d82f20d 100644 --- a/InvenTree/build/templates/build/parts.html +++ b/InvenTree/build/templates/build/parts.html @@ -3,13 +3,15 @@ {% load i18n %} {% load status_codes %} +{% block menubar %} +{% include "build/navbar.html" with tab='parts' %} +{% endblock %} + +{% block heading %} +{% trans "Required Parts" %} +{% endblock %} + {% block details %} - -{% include "build/tabs.html" with tab='parts' %} - -

{% trans "Build Parts" %}

-
-
{% endblock %} diff --git a/InvenTree/build/templates/build/tabs.html b/InvenTree/build/templates/build/tabs.html deleted file mode 100644 index 6b36c3d052..0000000000 --- a/InvenTree/build/templates/build/tabs.html +++ /dev/null @@ -1,44 +0,0 @@ -{% load i18n %} - - \ No newline at end of file