From a1ffb314313107277bf904ef55b754befdd86c57 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 29 Jul 2025 14:01:07 -0400 Subject: [PATCH] Include "add attachment" button --- netbox/templates/extras/object_imageattachments.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/netbox/templates/extras/object_imageattachments.html b/netbox/templates/extras/object_imageattachments.html index 9b5c9c1f0..46cb7ff99 100644 --- a/netbox/templates/extras/object_imageattachments.html +++ b/netbox/templates/extras/object_imageattachments.html @@ -1,7 +1,16 @@ {% extends base_template %} +{% load i18n %} {% load render_table from django_tables2 %} {% load thumbnail %} +{% block extra_controls %} + {% if perms.extras.add_imageattachment %} + + {% trans "Attach an Image" %} + + {% endif %} +{% endblock %} + {% block content %}
{% for object in image_attachments %}