diff --git a/InvenTree/part/templates/part/part_base.html b/InvenTree/part/templates/part/part_base.html index cecf4244ea..27e5aedb83 100644 --- a/InvenTree/part/templates/part/part_base.html +++ b/InvenTree/part/templates/part/part_base.html @@ -25,18 +25,7 @@
-
-
-
- -
- Select Part Image -
+ {% include "part/part_thumb.html" %}

{{ part.full_name }} @@ -209,13 +198,12 @@ }); }); - $("#part-thumb").click(function() { - launchModalForm( - "{% url 'part-image-upload' part.id %}", - { - reload: true - } - ); + $("#part-image-upload").click(function() { + launchModalForm("{% url 'part-image-upload' part.id %}", + { + reload: true + } + ); }); diff --git a/InvenTree/part/templates/part/part_thumb.html b/InvenTree/part/templates/part/part_thumb.html new file mode 100644 index 0000000000..e99b5106c0 --- /dev/null +++ b/InvenTree/part/templates/part/part_thumb.html @@ -0,0 +1,20 @@ +{% load static %} +{% load i18n %} + +
+
+
+ +
+
+
+ + +
+
+
\ No newline at end of file