diff --git a/InvenTree/order/templates/order/order_base.html b/InvenTree/order/templates/order/order_base.html index 4e67325e48..71a8b09e9f 100644 --- a/InvenTree/order/templates/order/order_base.html +++ b/InvenTree/order/templates/order/order_base.html @@ -135,6 +135,10 @@ src="{% static 'img/blank_image.png' %}" {% block js_ready %} {{ block.super }} +enableRightNavbar({ + minWidth: '50px' +}); + {% if order.status == PurchaseOrderStatus.PENDING and order.lines.count > 0 %} $("#place-order").click(function() { launchModalForm("{% url 'po-issue' order.id %}", diff --git a/InvenTree/order/templates/order/order_notes.html b/InvenTree/order/templates/order/order_notes.html index 0b45a5da4b..f392816120 100644 --- a/InvenTree/order/templates/order/order_notes.html +++ b/InvenTree/order/templates/order/order_notes.html @@ -5,14 +5,17 @@ {% load static %} {% load markdownify %} +{% block menubar %} +{% include 'order/po_navbar.html' with tab='notes' %} +{% endblock %} + +{% block heading %} +{% trans "Order Notes" %} +{% endblock %} + {% block details %} -{% include 'order/po_tabs.html' with tab='notes' %} - {% if editing %} -

{% trans "Order Notes" %}

-
-
{% csrf_token %} @@ -24,25 +27,16 @@ {{ form.media }} {% else %} -
-
-

{% trans "Order Notes" %}

-
- {% if roles.purchase_order.change %} -
- -
- {% endif %} -
-
+{% if roles.purchase_order.change %} + +{% endif %} +{% endif %}
{{ order.notes | markdownify }}
-{% endif %} - {% endblock %} {% block js_ready %} diff --git a/InvenTree/order/templates/order/po_attachments.html b/InvenTree/order/templates/order/po_attachments.html index d60d605771..6488a33f6f 100644 --- a/InvenTree/order/templates/order/po_attachments.html +++ b/InvenTree/order/templates/order/po_attachments.html @@ -4,14 +4,15 @@ {% load i18n %} {% load static %} +{% block menubar %} +{% include 'order/po_navbar.html' with tab='attachments' %} +{% endblock %} + +{% block heading %} +{% trans "Purchase Order Attachments" %} +{% endblock %} + {% block details %} - -{% include 'order/po_tabs.html' with tab='attachments' %} - -

{% trans "Purchase Order Attachments" %}

- -
- {% include "attachment_table.html" with attachments=order.attachments.all %} {% endblock %} diff --git a/InvenTree/order/templates/order/po_navbar.html b/InvenTree/order/templates/order/po_navbar.html new file mode 100644 index 0000000000..eac24d47b3 --- /dev/null +++ b/InvenTree/order/templates/order/po_navbar.html @@ -0,0 +1,35 @@ +{% load i18n %} +{% load static %} +{% load inventree_extras %} + + \ No newline at end of file diff --git a/InvenTree/order/templates/order/po_received_items.html b/InvenTree/order/templates/order/po_received_items.html index b3b46c4aa4..96dcb4fcf7 100644 --- a/InvenTree/order/templates/order/po_received_items.html +++ b/InvenTree/order/templates/order/po_received_items.html @@ -4,13 +4,16 @@ {% load i18n %} {% load static %} +{% block menubar %} +{% include 'order/po_navbar.html' with tab='received' %} +{% endblock %} + +{% block heading %} +{% trans "Received Items" %} +{% endblock %} + {% block details %} -{% include 'order/po_tabs.html' with tab='received' %} - -

{% trans "Received Items" %}

-
- {% include "stock_table.html" with read_only=True %} {% endblock %} diff --git a/InvenTree/order/templates/order/po_tabs.html b/InvenTree/order/templates/order/po_tabs.html deleted file mode 100644 index 5792107b04..0000000000 --- a/InvenTree/order/templates/order/po_tabs.html +++ /dev/null @@ -1,20 +0,0 @@ -{% load i18n %} - - diff --git a/InvenTree/order/templates/order/purchase_order_detail.html b/InvenTree/order/templates/order/purchase_order_detail.html index 0829eb18e1..268e83ef4e 100644 --- a/InvenTree/order/templates/order/purchase_order_detail.html +++ b/InvenTree/order/templates/order/purchase_order_detail.html @@ -5,11 +5,18 @@ {% load i18n %} {% load static %} +{% block menubar %} +{% include 'order/po_navbar.html' with tab='details' %} + +{% endblock %} + +{% block heading %} +{% trans "Purchase Order Items" %} +{% endblock %} + + {% block details %} -{% include 'order/po_tabs.html' with tab='details' %} - -
{% if order.status == PurchaseOrderStatus.PENDING and roles.purchase_order.change %} @@ -18,7 +25,6 @@ {% endif %}
-

{% trans "Purchase Order Items" %}

diff --git a/InvenTree/part/templates/part/navbar.html b/InvenTree/part/templates/part/navbar.html index 7b9babf422..17e69172de 100644 --- a/InvenTree/part/templates/part/navbar.html +++ b/InvenTree/part/templates/part/navbar.html @@ -6,7 +6,6 @@
  • - {% trans "Part" %}
  • diff --git a/InvenTree/templates/two_column.html b/InvenTree/templates/two_column.html index 1c90887b3c..9904ecb804 100644 --- a/InvenTree/templates/two_column.html +++ b/InvenTree/templates/two_column.html @@ -3,34 +3,49 @@ {% load static %} {% load i18n %} +{% block menubar %} + +{% endblock %} + {% block content %} -
    -
    -
    - {% block thumbnail %} - +
    + +
    +
    +
    + {% block thumbnail %} + + {% endblock %} +
    +
    + {% block page_data %} + + {% endblock %} +
    +
    +
    + {% block page_details %} + {% endblock %}
    -
    - {% block page_data %} - - {% endblock %} -
    -
    -
    - {% block page_details %} - - {% endblock %}
    -
    +
    +
    +

    + {% block heading %} + + {% endblock %} +

    +
    -
    - {% block details %} - - {% endblock %} +
    + {% block details %} + + {% endblock %} +
    {% endblock %}