diff --git a/InvenTree/build/templates/build/allocation_item.html b/InvenTree/build/templates/build/allocation_item.html index 920012e953..ebe05ce4d4 100644 --- a/InvenTree/build/templates/build/allocation_item.html +++ b/InvenTree/build/templates/build/allocation_item.html @@ -6,10 +6,7 @@ {% block collapse_panel_setup %}class='panel part-allocation' id='allocation-panel-{{ item.sub_part.id }}'{% endblock %} {% block collapse_title %} -
- - -
+ {% include "hover_image.html" with image=item.sub_part.image %}
{{ item.sub_part.full_name }} {{ item.sub_part.description }} diff --git a/InvenTree/build/templates/build/auto_allocate.html b/InvenTree/build/templates/build/auto_allocate.html index dc2160a006..72d328df9b 100644 --- a/InvenTree/build/templates/build/auto_allocate.html +++ b/InvenTree/build/templates/build/auto_allocate.html @@ -21,10 +21,7 @@ Automatically allocate stock to this build? {% for item in allocations %} - - - - + {% include "hover_image.html" with image=item.stock_item.part.image %} {{ item.stock_item.part.full_name }}
diff --git a/InvenTree/build/templates/build/build_base.html b/InvenTree/build/templates/build/build_base.html index b2102ed74b..7cb5a2d659 100644 --- a/InvenTree/build/templates/build/build_base.html +++ b/InvenTree/build/templates/build/build_base.html @@ -30,7 +30,7 @@ InvenTree | Build - {{ build }} Part - {{ build.part.full_name }} + {{ build.part.full_name }} Quantity diff --git a/InvenTree/build/templates/build/complete.html b/InvenTree/build/templates/build/complete.html index 9f41bee54e..0a8f094614 100644 --- a/InvenTree/build/templates/build/complete.html +++ b/InvenTree/build/templates/build/complete.html @@ -18,10 +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 %} {{ item.stock_item.part.full_name }}
@@ -38,10 +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 %} {{ build.quantity }} x {{ build.part.full_name }}
diff --git a/InvenTree/build/templates/build/required.html b/InvenTree/build/templates/build/required.html index 6ab16032ab..66aea7d48a 100644 --- a/InvenTree/build/templates/build/required.html +++ b/InvenTree/build/templates/build/required.html @@ -19,10 +19,7 @@ {% for item in build.required_parts %} - - - - + {% include "hover_image.html" with image=item.part.image %} {{ item.part.full_name }} {{ item.part.total_stock }} diff --git a/InvenTree/part/templates/part/variants.html b/InvenTree/part/templates/part/variants.html index 98ac08a8d3..8061e32e7a 100644 --- a/InvenTree/part/templates/part/variants.html +++ b/InvenTree/part/templates/part/variants.html @@ -33,12 +33,7 @@ {% for variant in part.variants.all %} -
- - {% if variant.image %} - - {% endif %} -
+ {% include "hover_image.html" with image=variant.image %} {{ variant.full_name }} {{ variant.description }} diff --git a/InvenTree/templates/hover_image.html b/InvenTree/templates/hover_image.html new file mode 100644 index 0000000000..0853c4fc12 --- /dev/null +++ b/InvenTree/templates/hover_image.html @@ -0,0 +1,12 @@ +{% load static %} + +
+ {% if image %} + + {% endif %} + + {% if image %} + + + {% endif %} +
\ No newline at end of file