From 233f09309374a89fed1b7aed2893c85a70f158f7 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 9 May 2018 00:12:21 +1000 Subject: [PATCH] Update supplier part detail page - Consolidated buttons into dropdown - Make look like other pages --- .../company/templates/company/partdetail.html | 36 +++++++++++++------ 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/InvenTree/company/templates/company/partdetail.html b/InvenTree/company/templates/company/partdetail.html index fa974ceef6..ec9972527d 100644 --- a/InvenTree/company/templates/company/partdetail.html +++ b/InvenTree/company/templates/company/partdetail.html @@ -2,13 +2,32 @@ {% load static %} {% block content %} -

Supplier part information

+
+
+

Supplier Part

+

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

+
+
+

+ +

+
+
- - +
+ +
SKU{{ part.SKU }}
+ - +
Supplier{{ part.supplier.name }}
SKU{{ part.SKU }}
Parent PartInternal Part {% if part.part %} {{ part.part.name }} @@ -29,18 +48,13 @@
-
- - -
- {% include 'modals.html' %} {% endblock %} {% block js_ready %} {{ block.super }} - $('#part-edit').click(function () { + $('#edit-part').click(function () { launchModalForm( "{% url 'supplier-part-edit' part.id %}", { @@ -49,7 +63,7 @@ ); }); - $('#part-delete').click(function() { + $('#delete-part').click(function() { launchDeleteForm( "{% url 'supplier-part-delete' part.id %}", {