From 782ad57f526b43ed1d6e8e64df6b3fc73779ff1d Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 3 Jun 2019 22:03:22 +1000 Subject: [PATCH] Re-enable image hovering where appropriate --- InvenTree/build/templates/build/allocate_view.html | 2 +- InvenTree/build/templates/build/auto_allocate.html | 2 +- InvenTree/build/templates/build/complete.html | 4 ++-- InvenTree/part/templates/part/variants.html | 2 +- InvenTree/stock/templates/stock/stock_adjust.html | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/InvenTree/build/templates/build/allocate_view.html b/InvenTree/build/templates/build/allocate_view.html index 1c38c38e12..49ee5d71c4 100644 --- a/InvenTree/build/templates/build/allocate_view.html +++ b/InvenTree/build/templates/build/allocate_view.html @@ -20,7 +20,7 @@ {% for item in build.required_parts %} - {% include "hover_image.html" with image=item.part.image %} + {% include "hover_image.html" with image=item.part.image hover=True %} {{ item.part.full_name }} {{ item.part.description }} diff --git a/InvenTree/build/templates/build/auto_allocate.html b/InvenTree/build/templates/build/auto_allocate.html index 72d328df9b..d278b9cd18 100644 --- a/InvenTree/build/templates/build/auto_allocate.html +++ b/InvenTree/build/templates/build/auto_allocate.html @@ -21,7 +21,7 @@ Automatically allocate stock to this build? {% for item in allocations %} - {% include "hover_image.html" with image=item.stock_item.part.image %} + {% include "hover_image.html" with image=item.stock_item.part.image hover=True %} {{ item.stock_item.part.full_name }}
diff --git a/InvenTree/build/templates/build/complete.html b/InvenTree/build/templates/build/complete.html index 0a8f094614..230092d766 100644 --- a/InvenTree/build/templates/build/complete.html +++ b/InvenTree/build/templates/build/complete.html @@ -18,7 +18,7 @@ The following items will be removed from stock: {% for item in taking %} - {% include "hover_image.html" with image=item.stock_item.part.image %} + {% include "hover_image.html" with image=item.stock_item.part.image hover=True %} {{ item.stock_item.part.full_name }}
@@ -35,7 +35,7 @@ No parts have been allocated to this build.
The following items will be created:
- {% include "hover_image.html" with image=build.part.image %} + {% include "hover_image.html" with image=build.part.image hover=True %} {{ build.quantity }} x {{ build.part.full_name }}
diff --git a/InvenTree/part/templates/part/variants.html b/InvenTree/part/templates/part/variants.html index 8061e32e7a..d2114a050c 100644 --- a/InvenTree/part/templates/part/variants.html +++ b/InvenTree/part/templates/part/variants.html @@ -33,7 +33,7 @@ {% for variant in part.variants.all %} - {% include "hover_image.html" with image=variant.image %} + {% include "hover_image.html" with image=variant.image hover=True %} {{ variant.full_name }} {{ variant.description }} diff --git a/InvenTree/stock/templates/stock/stock_adjust.html b/InvenTree/stock/templates/stock/stock_adjust.html index 9bd4203725..625cb3c3af 100644 --- a/InvenTree/stock/templates/stock/stock_adjust.html +++ b/InvenTree/stock/templates/stock/stock_adjust.html @@ -17,7 +17,7 @@ {% for item in stock_items %} - {% include "hover_image.html" with image=item.part.image %} + {% include "hover_image.html" with image=item.part.image hover=True %} {{ item.part.full_name }} {{ item.part.description }} {{ item.location.pathstring }}