diff --git a/InvenTree/order/templates/order/sales_order_base.html b/InvenTree/order/templates/order/sales_order_base.html index 378020850b..1b39f24137 100644 --- a/InvenTree/order/templates/order/sales_order_base.html +++ b/InvenTree/order/templates/order/sales_order_base.html @@ -67,7 +67,7 @@ src="{% static 'img/blank_image.png' %}" {% block page_details %}

{% trans "Sales Order Details" %}

- +
@@ -135,6 +135,10 @@ src="{% static 'img/blank_image.png' %}" {% block js_ready %} {{ block.super }} +enableRightNavbar({ + minWidth: '50px' +}); + $("#edit-order").click(function() { launchModalForm("{% url 'so-edit' order.id %}", { reload: true, diff --git a/InvenTree/order/templates/order/sales_order_detail.html b/InvenTree/order/templates/order/sales_order_detail.html index 8e3128e1f3..c91cc6e51b 100644 --- a/InvenTree/order/templates/order/sales_order_detail.html +++ b/InvenTree/order/templates/order/sales_order_detail.html @@ -5,13 +5,16 @@ {% load i18n %} {% load static %} +{% block menubar %} +{% include "order/so_navbar.html" with tab='details' %} +{% endblock %} + +{% block heading %} +{% trans "Sales Order Items" %} +{% endblock %} + {% block details %} -{% include "order/so_tabs.html" with tab='details' %} - -
- -

{% trans "Sales Order Items" %}

{% if roles.sales_order.change %}
diff --git a/InvenTree/order/templates/order/sales_order_notes.html b/InvenTree/order/templates/order/sales_order_notes.html index 959746667b..947ea339db 100644 --- a/InvenTree/order/templates/order/sales_order_notes.html +++ b/InvenTree/order/templates/order/sales_order_notes.html @@ -1,22 +1,22 @@ {% extends "order/sales_order_base.html" %} +{% load inventree_extras %} {% load i18n %} {% load static %} -{% load inventree_extras %} -{% load status_codes %} {% load markdownify %} +{% load status_codes %} -{% block page_title %} -InvenTree | {% trans "Sales Order" %} +{% block menubar %} +{% include 'order/so_navbar.html' with tab='notes' %} +{% endblock %} + +{% block heading %} +{% trans "Sales Order Notes" %} {% endblock %} {% block details %} -{% include "order/so_tabs.html" with tab='notes' %} - {% if editing %} -

{% trans "Order Notes" %}

-
{% csrf_token %} @@ -29,15 +29,7 @@ InvenTree | {% trans "Sales Order" %} {{ form.media }} {% else %} -
-
-

{% trans "Order Notes" %}

-
-
- -
-
-
+
{{ order.notes | markdownify }} diff --git a/InvenTree/order/templates/order/so_attachments.html b/InvenTree/order/templates/order/so_attachments.html index 672d9af952..b868aea48e 100644 --- a/InvenTree/order/templates/order/so_attachments.html +++ b/InvenTree/order/templates/order/so_attachments.html @@ -4,14 +4,16 @@ {% load i18n %} {% load static %} +{% block menubar %} +{% include 'order/so_navbar.html' with tab='attachments' %} +{% endblock %} + +{% block heading %} +{% trans "Sales Order Attachments" %} +{% endblock %} + {% block details %} -{% include 'order/so_tabs.html' with tab='attachments' %} - -

{% trans "Sales Order Attachments" %}

- -
- {% include "attachment_table.html" with attachments=order.attachments.all %} {% endblock %} diff --git a/InvenTree/order/templates/order/so_builds.html b/InvenTree/order/templates/order/so_builds.html index f877a4977f..91461136a0 100644 --- a/InvenTree/order/templates/order/so_builds.html +++ b/InvenTree/order/templates/order/so_builds.html @@ -4,12 +4,16 @@ {% load i18n %} {% load static %} +{% block menubar %} +{% include 'order/so_navbar.html' with tab='builds' %} +{% endblock %} + +{% block heading %} +{% trans "Build Orders" %} +{% endblock %} + {% block details %} -{% include 'order/so_tabs.html' with tab='builds' %} - -

{% trans "Build Orders" %}

-
diff --git a/InvenTree/order/templates/order/so_navbar.html b/InvenTree/order/templates/order/so_navbar.html new file mode 100644 index 0000000000..847e0a22f6 --- /dev/null +++ b/InvenTree/order/templates/order/so_navbar.html @@ -0,0 +1,40 @@ +{% load i18n %} +{% load static %} +{% load inventree_extras %} + + \ No newline at end of file diff --git a/InvenTree/order/templates/order/so_tabs.html b/InvenTree/order/templates/order/so_tabs.html deleted file mode 100644 index 95ccac7933..0000000000 --- a/InvenTree/order/templates/order/so_tabs.html +++ /dev/null @@ -1,25 +0,0 @@ -{% load i18n %} - - \ No newline at end of file diff --git a/InvenTree/templates/two_column.html b/InvenTree/templates/two_column.html index 9904ecb804..725e369931 100644 --- a/InvenTree/templates/two_column.html +++ b/InvenTree/templates/two_column.html @@ -4,7 +4,7 @@ {% load i18n %} {% block menubar %} - + {% endblock %} {% block content %}