From 33ffa2f75fd9cd8809cd8f4126ba6fe5d6cbd49f Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 18 Mar 2020 20:37:25 +1100 Subject: [PATCH] Add option to make stock-table read-only - Default table is not read-only --- InvenTree/build/templates/build/build_output.html | 2 +- InvenTree/templates/stock_table.html | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/InvenTree/build/templates/build/build_output.html b/InvenTree/build/templates/build/build_output.html index f35672bf79..e5a3e77e61 100644 --- a/InvenTree/build/templates/build/build_output.html +++ b/InvenTree/build/templates/build/build_output.html @@ -9,7 +9,7 @@

{% trans "Build Outputs" %}


-{% include "stock_table.html" %} +{% include "stock_table.html" with read_only=True %} {% endblock %} diff --git a/InvenTree/templates/stock_table.html b/InvenTree/templates/stock_table.html index 31eaf30bb7..2d823c9510 100644 --- a/InvenTree/templates/stock_table.html +++ b/InvenTree/templates/stock_table.html @@ -3,6 +3,8 @@
+ {% if read_only %} + {% else %} + {% endif %}