From 0933cf859cc2441b2077e36f340e7c5565fcafe4 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 4 May 2020 19:48:09 +1000 Subject: [PATCH] Add "new manufacturer" button --- InvenTree/part/templates/part/supplier.html | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/InvenTree/part/templates/part/supplier.html b/InvenTree/part/templates/part/supplier.html index e20baae3e9..c9de41fb4f 100644 --- a/InvenTree/part/templates/part/supplier.html +++ b/InvenTree/part/templates/part/supplier.html @@ -1,19 +1,20 @@ {% extends "part/part_base.html" %} {% load static %} +{% load i18n %} {% block details %} {% include 'part/tabs.html' with tab='suppliers' %} -

Part Suppliers

+

{% trans "Part Suppliers" %}


- +
@@ -40,9 +41,15 @@ secondary: [ { field: 'supplier', - label: 'New Supplier', - title: 'Create new supplier', - url: "{% url 'company-create' %}" + label: '{% trans "New Supplier" %}', + title: '{% trans "Create new supplier" %}', + url: "{% url 'supplier-create' %}" + }, + { + field: 'manufacturer', + label: '{% trans "New Manufacturer" %}', + title: '{% trans "Create new manufacturer" %}', + url: "{% url 'manufacturer-create' %}", } ] });