From 4abd8587ab1c5ef06f33cdc73e669a51e963aedc Mon Sep 17 00:00:00 2001 From: eeintech Date: Wed, 24 Mar 2021 12:08:45 -0400 Subject: [PATCH] Updated company templates --- .../company/templates/company/detail.html | 4 +- .../templates/company/detail_part.html | 74 +++++++++++++++---- .../company/templates/company/navbar.html | 13 +++- InvenTree/company/views.py | 2 +- 4 files changed, 76 insertions(+), 17 deletions(-) diff --git a/InvenTree/company/templates/company/detail.html b/InvenTree/company/templates/company/detail.html index b803fc5852..735f34f6b3 100644 --- a/InvenTree/company/templates/company/detail.html +++ b/InvenTree/company/templates/company/detail.html @@ -51,12 +51,12 @@ - + {% trans "Manufacturer" %} {% include "yesnolabel.html" with value=company.is_manufacturer %} - + {% trans "Supplier" %} {% include 'yesnolabel.html' with value=company.is_supplier %} diff --git a/InvenTree/company/templates/company/detail_part.html b/InvenTree/company/templates/company/detail_part.html index b12322353a..65362521cd 100644 --- a/InvenTree/company/templates/company/detail_part.html +++ b/InvenTree/company/templates/company/detail_part.html @@ -17,9 +17,16 @@
{% if roles.purchase_order.add %} - + {% if company.is_manufacturer %} + + {% endif %} + {% if company.is_supplier %} + + {% endif %} {% endif %}