From d1cce7df94542320a28904f2cff9fd00fc52db84 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 30 Sep 2020 00:02:10 +1000 Subject: [PATCH] Add direct admin links if the user is staff --- InvenTree/build/templates/build/build_base.html | 7 ++++++- InvenTree/company/templates/company/company_base.html | 7 ++++++- InvenTree/part/templates/part/category.html | 7 ++++++- InvenTree/part/templates/part/part_base.html | 3 +++ InvenTree/stock/templates/stock/item_base.html | 7 +++++-- InvenTree/stock/templates/stock/location.html | 7 ++++++- 6 files changed, 32 insertions(+), 6 deletions(-) diff --git a/InvenTree/build/templates/build/build_base.html b/InvenTree/build/templates/build/build_base.html index fb84b467cf..d9764d6e25 100644 --- a/InvenTree/build/templates/build/build_base.html +++ b/InvenTree/build/templates/build/build_base.html @@ -33,7 +33,12 @@ src="{% static 'img/blank_image.png' %}" {% block page_data %}

{% trans "Build" %} {% build_status_label build.status large=True %}


-

{{ build.quantity }} x {{ build.part.full_name }}

+

+ {{ build.quantity }} x {{ build.part.full_name }} + {% if user.is_staff %} + +{% endif %} +