{% if termination %}
@@ -44,16 +44,15 @@
Marked as connected
{% elif termination.cable %}
-
{{ termination.cable }}
- {% with peer=termination.get_link_peer %}
- to
+
{{ termination.cable }} to
+ {% for peer in termination.link_peers %}
{% if peer.device %}
{{ peer.device|linkify }}
{% elif peer.circuit %}
{{ peer.circuit|linkify }}
{% endif %}
- {{ peer|linkify }}
- {% endwith %}
+ {{ peer|linkify }}{% if not forloop.last %},{% endif %}
+ {% endfor %}
{% endif %}
@@ -110,6 +109,33 @@
Description |
{{ termination.description|placeholder }} |
+
+ Tags |
+
+ {% for tag in termination.tags.all %}
+ {% tag tag %}
+ {% empty %}
+ {{ ''|placeholder }}
+ {% endfor %}
+ |
+
+ {% for group_name, fields in termination.get_custom_fields_by_group.items %}
+
+
+ {{ group_name|default:"Custom Fields" }}
+ |
+
+ {% for field, value in fields.items %}
+
+
+ {{ field }}
+ |
+
+ {% customfield_value field value %}
+ |
+
+ {% endfor %}
+ {% endfor %}
{% else %}
None
diff --git a/netbox/templates/dcim/cable.html b/netbox/templates/dcim/cable.html
index cd171cbb3..e032d7034 100644
--- a/netbox/templates/dcim/cable.html
+++ b/netbox/templates/dcim/cable.html
@@ -5,85 +5,79 @@
{% load plugins %}
{% block content %}
-
-
-
-
-
-
-
- Type |
- {{ object.get_type_display|placeholder }} |
-
-
- Status |
- {% badge object.get_status_display bg_color=object.get_status_color %} |
-
-
- Tenant |
-
- {% if object.tenant.group %}
- {{ object.tenant.group|linkify }} /
- {% endif %}
- {{ object.tenant|linkify|placeholder }}
- |
-
-
- Label |
- {{ object.label|placeholder }} |
-
-
- Color |
-
- {% if object.color %}
-
- {% else %}
- {{ ''|placeholder }}
- {% endif %}
- |
-
-
- Length |
-
- {% if object.length %}
- {{ object.length|floatformat }} {{ object.get_length_unit_display }}
- {% else %}
- {{ ''|placeholder }}
- {% endif %}
- |
-
-
-
-
- {% include 'inc/panels/custom_fields.html' %}
- {% include 'inc/panels/tags.html' %}
- {% plugin_left_page object %}
-
-
-
-
-
- {% include 'dcim/inc/cable_termination.html' with termination=object.termination_a %}
-
-
-
-
-
- {% include 'dcim/inc/cable_termination.html' with termination=object.termination_b %}
-
-
- {% plugin_right_page object %}
+
+
+
+
+
+
+
+ Type |
+ {{ object.get_type_display|placeholder }} |
+
+
+ Status |
+ {% badge object.get_status_display bg_color=object.get_status_color %} |
+
+
+ Tenant |
+
+ {% if object.tenant.group %}
+ {{ object.tenant.group|linkify }} /
+ {% endif %}
+ {{ object.tenant|linkify|placeholder }}
+ |
+
+
+ Label |
+ {{ object.label|placeholder }} |
+
+
+ Color |
+
+ {% if object.color %}
+
+ {% else %}
+ {{ ''|placeholder }}
+ {% endif %}
+ |
+
+
+ Length |
+
+ {% if object.length %}
+ {{ object.length|floatformat }} {{ object.get_length_unit_display }}
+ {% else %}
+ {{ ''|placeholder }}
+ {% endif %}
+ |
+
+
+
+ {% include 'inc/panels/custom_fields.html' %}
+ {% include 'inc/panels/tags.html' %}
+ {% plugin_left_page object %}
-
-
- {% plugin_full_width_page object %}
+
+
+
+
+ {% include 'dcim/inc/cable_termination.html' with terminations=object.a_terminations %}
+
+
+
+
+ {% include 'dcim/inc/cable_termination.html' with terminations=object.b_terminations %}
+
+
+ {% plugin_right_page object %}
+
+
+
+ {% plugin_full_width_page object %}
+
+
{% endblock %}
diff --git a/netbox/templates/dcim/cable_connect.html b/netbox/templates/dcim/cable_connect.html
deleted file mode 100644
index 1d50040c7..000000000
--- a/netbox/templates/dcim/cable_connect.html
+++ /dev/null
@@ -1,186 +0,0 @@
-{% extends 'base/layout.html' %}
-{% load static %}
-{% load helpers %}
-{% load form_helpers %}
-
-{% block title %}Connect {{ form.instance.termination_a.device }} {{ form.instance.termination_a }} to {{ termination_b_type|bettertitle }}{% endblock %}
-
-{% block tabs %}
-
-{% endblock %}
-
-{% block content-wrapper %}
-
- {% with termination_a=form.instance.termination_a %}
- {% render_errors form %}
-
- {% endwith %}
-
-{% endblock %}
diff --git a/netbox/templates/dcim/cable_edit.html b/netbox/templates/dcim/cable_edit.html
index 45f05faad..e2cef7601 100644
--- a/netbox/templates/dcim/cable_edit.html
+++ b/netbox/templates/dcim/cable_edit.html
@@ -1,5 +1,125 @@
-{% extends 'generic/object_edit.html' %}
+{% extends 'base/layout.html' %}
+{% load static %}
+{% load helpers %}
+{% load form_helpers %}
-{% block form %}
- {% include 'dcim/inc/cable_form.html' %}
+{% block title %}Connect Cable{% endblock %}
+
+{% block tabs %}
+
+{% endblock %}
+
+{% block content-wrapper %}
+
+ {% render_errors form %}
+
+
{% endblock %}
diff --git a/netbox/templates/dcim/cable_trace.html b/netbox/templates/dcim/cable_trace.html
index ac0481925..2611686f6 100644
--- a/netbox/templates/dcim/cable_trace.html
+++ b/netbox/templates/dcim/cable_trace.html
@@ -10,49 +10,49 @@
{% if path %}
- {% with traced_path=path.origin.trace %}
- {% if path.is_split %}
-
Path split!
-
Select a node below to continue:
-
- {% for next_node in path.get_split_nodes %}
- {% if next_node.cable %}
- -
- {{ next_node }}
- (Cable {{ next_node.cable|linkify }})
-
- {% else %}
- - {{ next_node }}
- {% endif %}
- {% endfor %}
-
- {% else %}
-
Trace Completed
-
-
- Total segments |
- {{ traced_path|length }} |
-
-
- Total length |
-
- {% if total_length %}
- {{ total_length|floatformat:"-2" }}{% if not is_definitive %}+{% endif %} Meters /
- {{ total_length|meters_to_feet|floatformat:"-2" }} Feet
- {% else %}
- N/A
- {% endif %}
- |
-
-
- {% endif %}
- {% endwith %}
+ {% if path.is_split %}
+
Path split!
+
Select a node below to continue:
+
+ {% for next_node in path.get_split_nodes %}
+ {% if next_node.cable %}
+ -
+ {{ next_node }}
+ (Cable {{ next_node.cable|linkify }})
+
+ {% else %}
+ - {{ next_node }}
+ {% endif %}
+ {% endfor %}
+
+ {% else %}
+
Trace Completed
+
+
+ Total segments |
+ {{ path.segment_count }} |
+
+
+ Total length |
+
+ {% if total_length %}
+ {{ total_length|floatformat:"-2" }}{% if not is_definitive %}+{% endif %} Meters /
+ {{ total_length|meters_to_feet|floatformat:"-2" }} Feet
+ {% else %}
+ N/A
+ {% endif %}
+ |
+
+
+ {% endif %}
{% else %}
@@ -80,18 +80,16 @@
{% for cablepath in related_paths %}
-
- {{ cablepath.origin.parent_object }} / {{ cablepath.origin }}
-
+ {{ cablepath.origins|join:", " }}
|
- {% if cablepath.destination %}
- {{ cablepath.destination }} ({{ cablepath.destination.parent_object }})
+ {% if cablepath.destinations %}
+ {{ cablepath.destinations|join:", " }}
{% else %}
Incomplete
{% endif %}
|
-
+ |
{{ cablepath.segment_count }}
|
diff --git a/netbox/templates/dcim/consoleport.html b/netbox/templates/dcim/consoleport.html
index ce2c1655d..39ffbf552 100644
--- a/netbox/templates/dcim/consoleport.html
+++ b/netbox/templates/dcim/consoleport.html
@@ -111,28 +111,13 @@
diff --git a/netbox/templates/dcim/consoleserverport.html b/netbox/templates/dcim/consoleserverport.html
index 52b1a3229..642e758a3 100644
--- a/netbox/templates/dcim/consoleserverport.html
+++ b/netbox/templates/dcim/consoleserverport.html
@@ -113,28 +113,13 @@
diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html
index 68af0c08f..8286f2c61 100644
--- a/netbox/templates/dcim/device.html
+++ b/netbox/templates/dcim/device.html
@@ -46,7 +46,18 @@
Rack |
- {{ object.rack|linkify|placeholder }} |
+
+ {% if object.rack %}
+ {{ object.rack|linkify }}
+
+ {% else %}
+ {{ ''|placeholder }}
+ {% endif %}
+ |
Position |
diff --git a/netbox/templates/dcim/device/consoleports.html b/netbox/templates/dcim/device/consoleports.html
index 6f8b383c3..1f7cd037e 100644
--- a/netbox/templates/dcim/device/consoleports.html
+++ b/netbox/templates/dcim/device/consoleports.html
@@ -17,7 +17,7 @@
- NAT (outside) |
- {{ object.nat_outside|linkify|placeholder }} |
+ Outside NAT IPs |
+
+ {% for ip in object.nat_outside.all %}
+ {{ ip|linkify }}
+ {% empty %}
+ {{ ''|placeholder }}
+ {% endfor %}
+ |
diff --git a/netbox/templates/ipam/iprange/ip_addresses.html b/netbox/templates/ipam/iprange/ip_addresses.html
index d9ac77fd0..61b2ee335 100644
--- a/netbox/templates/ipam/iprange/ip_addresses.html
+++ b/netbox/templates/ipam/iprange/ip_addresses.html
@@ -23,12 +23,12 @@