From d2d248c72e33c3101840d69699351ef69e61463c Mon Sep 17 00:00:00 2001
From: Oliver Walters
Date: Sun, 5 May 2019 10:56:59 +1000
Subject: [PATCH] QR button code is now a template
---
InvenTree/part/templates/part/part_base.html | 2 +-
InvenTree/stock/templates/stock/item.html | 2 +-
InvenTree/stock/templates/stock/location.html | 2 +-
InvenTree/templates/qr_button.html | 1 +
4 files changed, 4 insertions(+), 3 deletions(-)
create mode 100644 InvenTree/templates/qr_button.html
diff --git a/InvenTree/part/templates/part/part_base.html b/InvenTree/part/templates/part/part_base.html
index 7381332892..0cac700857 100644
--- a/InvenTree/part/templates/part/part_base.html
+++ b/InvenTree/part/templates/part/part_base.html
@@ -27,7 +27,7 @@
{{ part.description }}
-
+ {% include "qr_button.html" %}
diff --git a/InvenTree/stock/templates/stock/item.html b/InvenTree/stock/templates/stock/item.html
index 87fff9fbb4..daea4ddf24 100644
--- a/InvenTree/stock/templates/stock/item.html
+++ b/InvenTree/stock/templates/stock/item.html
@@ -8,7 +8,7 @@
{{ item.quantity }} × {{ item.part.name }}
-
+ {% include "qr_button.html" %}
diff --git a/InvenTree/stock/templates/stock/location.html b/InvenTree/stock/templates/stock/location.html
index 8a8f0356fe..fbb46b6e18 100644
--- a/InvenTree/stock/templates/stock/location.html
+++ b/InvenTree/stock/templates/stock/location.html
@@ -9,7 +9,7 @@
{{ location.description }}
-
+ {% include "qr_button.html" %}
{% else %}
diff --git a/InvenTree/templates/qr_button.html b/InvenTree/templates/qr_button.html
new file mode 100644
index 0000000000..7aafd834bc
--- /dev/null
+++ b/InvenTree/templates/qr_button.html
@@ -0,0 +1 @@
+
\ No newline at end of file