From a09c9a12b4080825a7a7fe56e3d09d63fa55937b Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 9 Dec 2025 11:24:29 -0500 Subject: [PATCH] Rearranged panels under front/rear port views --- netbox/templates/dcim/frontport.html | 48 ++++++++++++++-------------- netbox/templates/dcim/rearport.html | 48 ++++++++++++++-------------- 2 files changed, 48 insertions(+), 48 deletions(-) diff --git a/netbox/templates/dcim/frontport.html b/netbox/templates/dcim/frontport.html index 036a7d172..f93e8282f 100644 --- a/netbox/templates/dcim/frontport.html +++ b/netbox/templates/dcim/frontport.html @@ -58,32 +58,10 @@ {% include 'inc/panels/custom_fields.html' %} {% include 'inc/panels/tags.html' %} + {% include 'dcim/inc/panels/inventory_items.html' %} {% plugin_left_page object %}
-
-

{% trans "Port Mappings" %}

- - {% if rear_port_mappings %} - - - - - - - {% endif %} - {% for mapping in rear_port_mappings %} - - - - - {% empty %} - {% trans "No mappings defined" %} - {% endfor %} -
{% trans "Position" %}{% trans "Rear Port" %}
{{ mapping.front_port_position }} - {{ mapping.rear_port }}:{{ mapping.rear_port_position }} -
-

{% trans "Connection" %}

{% if object.mark_connected %} @@ -145,7 +123,29 @@
{% endif %}
- {% include 'dcim/inc/panels/inventory_items.html' %} +
+

{% trans "Port Mappings" %}

+ + {% if rear_port_mappings %} + + + + + + + {% endif %} + {% for mapping in rear_port_mappings %} + + + + + {% empty %} + {% trans "No mappings defined" %} + {% endfor %} +
{% trans "Position" %}{% trans "Rear Port" %}
{{ mapping.front_port_position }} + {{ mapping.rear_port }}:{{ mapping.rear_port_position }} +
+
{% plugin_right_page object %} diff --git a/netbox/templates/dcim/rearport.html b/netbox/templates/dcim/rearport.html index 872a437dc..a4c111ecf 100644 --- a/netbox/templates/dcim/rearport.html +++ b/netbox/templates/dcim/rearport.html @@ -58,32 +58,10 @@ {% include 'inc/panels/custom_fields.html' %} {% include 'inc/panels/tags.html' %} + {% include 'dcim/inc/panels/inventory_items.html' %} {% plugin_left_page object %}
-
-

{% trans "Port Mappings" %}

- - {% if front_port_mappings %} - - - - - - - {% endif %} - {% for mapping in front_port_mappings %} - - - - - {% empty %} - {% trans "No mappings defined" %} - {% endfor %} -
{% trans "Position" %}{% trans "Front Port" %}
{{ mapping.rear_port_position }} - {{ mapping.front_port }}:{{ mapping.front_port_position }} -
-

{% trans "Connection" %}

{% if object.mark_connected %} @@ -139,7 +117,29 @@
{% endif %}
- {% include 'dcim/inc/panels/inventory_items.html' %} +
+

{% trans "Port Mappings" %}

+ + {% if front_port_mappings %} + + + + + + + {% endif %} + {% for mapping in front_port_mappings %} + + + + + {% empty %} + {% trans "No mappings defined" %} + {% endfor %} +
{% trans "Position" %}{% trans "Front Port" %}
{{ mapping.rear_port_position }} + {{ mapping.front_port }}:{{ mapping.front_port_position }} +
+
{% plugin_right_page object %}