From 5959dccff0b3ab00073a244c296fa812bd5c452a Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 27 Oct 2021 22:56:17 +1100 Subject: [PATCH] Refactor "supplier_part" page --- .../templates/company/supplier_part.html | 31 ++++++++++++------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/InvenTree/company/templates/company/supplier_part.html b/InvenTree/company/templates/company/supplier_part.html index e32bef4e8f..ae69703fd6 100644 --- a/InvenTree/company/templates/company/supplier_part.html +++ b/InvenTree/company/templates/company/supplier_part.html @@ -1,4 +1,4 @@ -{% extends "two_column.html" %} +{% extends "page_base.html" %} {% load static %} {% load i18n %} {% load inventree_extras %} @@ -11,6 +11,14 @@ {% include "company/supplier_part_navbar.html" %} {% endblock %} +{% block breadcrumbs %} + +{% if part.supplier %} + +{% endif %} + +{% endblock %} + {% block thumbnail %} {% endblock %} -{% block page_data %} -

{% trans "Supplier Part" %}

-
+{% block details %}

- {{ part.part.full_name }} + {% trans "Supplier Part" %}: {{ part.SKU }} {% if user.is_staff and perms.company.change_company %} {% endif %}

-

{{ part.supplier.name }} - {{ part.SKU }}

+

+ {{ part.part.full_name }} +

{% if roles.purchase_order.change %}
-
+
{% if roles.purchase_order.add %} - {% endif %} - {% if roles.purchase_order.delete %} - {% endif %} @@ -55,9 +63,8 @@ src="{% static 'img/blank_image.png' %}" {% endblock %} -{% block page_details %} +{% block details_right %} -

{% trans "Supplier Part Details" %}