From e88ea8d15723accd2505346802c0b5fbe600a409 Mon Sep 17 00:00:00 2001
From: Oliver
Date: Tue, 30 Nov 2021 20:53:01 +1100
Subject: [PATCH] Refactor supplier part display
---
.../templates/company/supplier_part.html | 64 +++++++++----------
1 file changed, 32 insertions(+), 32 deletions(-)
diff --git a/InvenTree/company/templates/company/supplier_part.html b/InvenTree/company/templates/company/supplier_part.html
index 276a9f7ebc..89e8f91493 100644
--- a/InvenTree/company/templates/company/supplier_part.html
+++ b/InvenTree/company/templates/company/supplier_part.html
@@ -5,11 +5,11 @@
{% block page_title %}
{% inventree_title %} | {% trans "Supplier Part" %}
-{% endblock %}
+{% endblock page_title %}
{% block sidebar %}
{% include "company/supplier_part_sidebar.html" %}
-{% endblock %}
+{% endblock sidebar %}
{% block breadcrumbs %}
{% trans "Suppliers" %}
@@ -17,13 +17,13 @@
{{ part.supplier.name }}
{% endif %}
{{ part.SKU }}
-{% endblock %}
+{% endblock breadcrumbs %}
{% block heading %}
{% trans "Supplier Part" %}: {{ part.SKU }}
-{% endblock %}
+{% endblock heading %}
{% block actions %}
{% if user.is_staff and perms.company.change_company %}
@@ -43,7 +43,7 @@
{% endif %}
-{% endblock %}
+{% endblock actions %}
{% block thumbnail %}
- {{ part.part.full_name }}
-
+
+
+
+ |
+ {% trans "Internal Part" %} |
+
+ {% if part.part %}
+ {{ part.part.full_name }}{% include "clip.html"%}
+ {% endif %}
+ |
+
+ {% if part.description %}
+
+ |
+ {% trans "Description" %} |
+ {{ part.description }}{% include "clip.html"%} |
+
+ {% endif %}
+
-{% endblock %}
+{% endblock details %}
{% block details_right %}
-
- |
- {% trans "Internal Part" %} |
-
- {% if part.part %}
- {{ part.part.full_name }}{% include "clip.html"%}
- {% endif %}
- |
-
- {% if part.description %}
-
- |
- {% trans "Description" %} |
- {{ part.description }}{% include "clip.html"%} |
-
- {% endif %}
- {% if part.link %}
-
- |
- {% trans "External Link" %} |
- {{ part.link }}{% include "clip.html"%} |
-
- {% endif %}
|
{% trans "Supplier" %} |
@@ -127,6 +120,13 @@ src="{% static 'img/blank_image.png' %}"
{{ part.note }}{% include "clip.html"%} |
{% endif %}
+ {% if part.link %}
+
+ |
+ {% trans "External Link" %} |
+ {{ part.link }}{% include "clip.html"%} |
+
+ {% endif %}
{% endblock %}