diff --git a/InvenTree/part/templates/part/part_base.html b/InvenTree/part/templates/part/part_base.html index ebcbdef03a..58922e377c 100644 --- a/InvenTree/part/templates/part/part_base.html +++ b/InvenTree/part/templates/part/part_base.html @@ -294,6 +294,13 @@ } }); } + + {% if roles.part.change %} + $("#part-image-url").click(function() { + launchModalForm( + '{% url "part-image-download" part.id %}', + ); + }); $("#part-image-select").click(function() { launchModalForm("{% url 'part-image-select' part.id %}", @@ -303,7 +310,6 @@ }); }); - {% if roles.part.change %} $("#part-edit").click(function() { launchModalForm( "{% url 'part-edit' part.id %}", diff --git a/InvenTree/part/templates/part/part_thumb.html b/InvenTree/part/templates/part/part_thumb.html index e0314b1c7e..5cef673bd7 100644 --- a/InvenTree/part/templates/part/part_thumb.html +++ b/InvenTree/part/templates/part/part_thumb.html @@ -11,10 +11,13 @@ src="{% static 'img/blank_image.png' %}" {% endif %}/> + {% if roles.part.change %}
+ {% endif %} \ No newline at end of file