From b9576ed38cbc7801b03c110e4635345befc5adbc Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 23 Oct 2025 19:57:29 -0400 Subject: [PATCH] Misc cleanup --- netbox/templates/dcim/device_edit.html | 7 +++++++ netbox/templates/dcim/htmx/cable_edit.html | 7 +++++++ netbox/templates/dcim/virtualchassis_edit.html | 11 +++++++++-- netbox/templates/ipam/vlan_edit.html | 7 +++++++ netbox/templates/users/ownergroup.html | 2 +- 5 files changed, 31 insertions(+), 3 deletions(-) diff --git a/netbox/templates/dcim/device_edit.html b/netbox/templates/dcim/device_edit.html index 7b010cb63..454faf8fb 100644 --- a/netbox/templates/dcim/device_edit.html +++ b/netbox/templates/dcim/device_edit.html @@ -99,6 +99,13 @@ {% render_field form.vc_priority %} +
+
+

{% trans "Owner" %}

+
+ {% render_field form.owner %} +
+ {% if form.custom_fields %}
diff --git a/netbox/templates/dcim/htmx/cable_edit.html b/netbox/templates/dcim/htmx/cable_edit.html index b0b2ce750..6de42fc49 100644 --- a/netbox/templates/dcim/htmx/cable_edit.html +++ b/netbox/templates/dcim/htmx/cable_edit.html @@ -77,6 +77,13 @@ {% render_field form.tenant %}
+
+
+

{% trans "Owner" %}

+
+ {% render_field form.owner %} +
+ {% if form.custom_fields %}
diff --git a/netbox/templates/dcim/virtualchassis_edit.html b/netbox/templates/dcim/virtualchassis_edit.html index 768fb7666..8744947fa 100644 --- a/netbox/templates/dcim/virtualchassis_edit.html +++ b/netbox/templates/dcim/virtualchassis_edit.html @@ -34,8 +34,11 @@ {% render_field vc_form.tags %}
-
- {% render_field vc_form.comments %} +
+
+

{% trans "Owner" %}

+
+ {% render_field vc_form.owner %}
{% if vc_form.custom_fields %} @@ -47,6 +50,10 @@
{% endif %} +
+ {% render_field vc_form.comments %} +
+

{% trans "Members" %}

diff --git a/netbox/templates/ipam/vlan_edit.html b/netbox/templates/ipam/vlan_edit.html index b6c21f972..623468af2 100644 --- a/netbox/templates/ipam/vlan_edit.html +++ b/netbox/templates/ipam/vlan_edit.html @@ -65,6 +65,13 @@ {% endwith %} +
+
+

{% trans "Owner" %}

+
+ {% render_field form.owner %} +
+ {% if form.custom_fields %}
diff --git a/netbox/templates/users/ownergroup.html b/netbox/templates/users/ownergroup.html index 1a74c3d48..c45da792a 100644 --- a/netbox/templates/users/ownergroup.html +++ b/netbox/templates/users/ownergroup.html @@ -35,7 +35,7 @@

{% trans "Members" %}

{% for owner in object.members.all %} - {{ owner }} + {{ owner }} {% empty %}
{% trans "None" %}
{% endfor %}