From a16f272535d3a45e648984ea5ee2f91271b28567 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 12 Jan 2024 09:39:18 -0500 Subject: [PATCH] Ensure consistent use of row headings in attribute tables --- .../circuits/inc/circuit_termination.html | 16 ++++++------ netbox/templates/dcim/devicetype.html | 26 +++++++++---------- .../templates/dcim/inc/cable_termination.html | 18 ++++++------- netbox/templates/dcim/moduletype.html | 22 ++++++++-------- netbox/templates/ipam/aggregate.html | 12 ++++----- netbox/templates/ipam/asn.html | 8 +++--- netbox/templates/ipam/asnrange.html | 10 +++---- netbox/templates/ipam/fhrpgroup.html | 12 ++++----- netbox/templates/ipam/ipaddress.html | 4 +-- netbox/templates/ipam/prefix.html | 10 +++---- netbox/templates/tenancy/contact.html | 14 +++++----- netbox/templates/tenancy/tenant.html | 4 +-- .../wireless/inc/wirelesslink_interface.html | 10 +++---- netbox/templates/wireless/wirelesslan.html | 4 +-- 14 files changed, 85 insertions(+), 85 deletions(-) diff --git a/netbox/templates/circuits/inc/circuit_termination.html b/netbox/templates/circuits/inc/circuit_termination.html index 6c28ba252..520e516c8 100644 --- a/netbox/templates/circuits/inc/circuit_termination.html +++ b/netbox/templates/circuits/inc/circuit_termination.html @@ -30,7 +30,7 @@ {% if termination.site %} - + - + {% else %} - + {% endif %} - + - + - + - + - + {% endwith %} - +
{% trans "Site" %}{% trans "Site" %} {% if termination.site.region %} {{ termination.site.region|linkify }} / @@ -39,7 +39,7 @@
{% trans "Termination" %}{% trans "Termination" %} {% if termination.mark_connected %} @@ -86,12 +86,12 @@
{% trans "Provider Network" %}{% trans "Provider Network" %} {{ termination.provider_network.provider|linkify }} / {{ termination.provider_network|linkify }}
{% trans "Speed" %}{% trans "Speed" %} {% if termination.port_speed and termination.upstream_speed %} {{ termination.port_speed|humanize_speed }}   @@ -104,19 +104,19 @@
{% trans "Cross-Connect" %}{% trans "Cross-Connect" %} {{ termination.xconnect_id|placeholder }}
{% trans "Patch Panel/Port" %}{% trans "Patch Panel/Port" %} {{ termination.pp_info|placeholder }}
{% trans "Description" %}{% trans "Description" %} {{ termination.description|placeholder }}
{% trans "Tags" %}{% trans "Tags" %} {% for tag in termination.tags.all %} {% tag tag %} diff --git a/netbox/templates/dcim/devicetype.html b/netbox/templates/dcim/devicetype.html index 35b089664..add5f232f 100644 --- a/netbox/templates/dcim/devicetype.html +++ b/netbox/templates/dcim/devicetype.html @@ -14,42 +14,42 @@
- + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - +
{% trans "Manufacturer" %}{% trans "Manufacturer" %} {{ object.manufacturer|linkify }}
{% trans "Model Name" %}{% trans "Model Name" %} {{ object.model }}
{{ object.slug }}
{% trans "Part Number" %}{% trans "Part Number" %} {{ object.part_number|placeholder }}
{% trans "Default Platform" %}{% trans "Default Platform" %} {{ object.default_platform|linkify }}
{% trans "Description" %}{% trans "Description" %} {{ object.description|placeholder }}
{% trans "Height (U" %}){% trans "Height (U" %}) {{ object.u_height|floatformat }}
{% trans "Exclude From Utilization" %}){% trans "Exclude From Utilization" %}) {% checkmark object.exclude_from_utilization %}
{% trans "Full Depth" %}{% trans "Full Depth" %} {% checkmark object.is_full_depth %}
{% trans "Weight" %}{% trans "Weight" %} {% if object.weight %} {{ object.weight|floatformat }} {{ object.get_weight_unit_display }} @@ -59,19 +59,19 @@
{% trans "Parent/Child" %}{% trans "Parent/Child" %} {{ object.get_subdevice_role_display|placeholder }}
{% trans "Airflow" %}{% trans "Airflow" %} {{ object.get_airflow_display|placeholder }}
{% trans "Front Image" %}{% trans "Front Image" %} {% if object.front_image %} @@ -83,7 +83,7 @@
{% trans "Rear Image" %}{% trans "Rear Image" %} {% if object.rear_image %} diff --git a/netbox/templates/dcim/inc/cable_termination.html b/netbox/templates/dcim/inc/cable_termination.html index 6c09f49ef..da08e7b9c 100644 --- a/netbox/templates/dcim/inc/cable_termination.html +++ b/netbox/templates/dcim/inc/cable_termination.html @@ -5,19 +5,19 @@ {% if terminations.0.device %} {# Device component #}
{% trans "Site" %}{% trans "Site" %} {{ terminations.0.device.site|linkify }}
{% trans "Location" %}{% trans "Location" %} {{ terminations.0.device.location|linkify|placeholder }}
{% trans "Rack" %}{% trans "Rack" %} {{ terminations.0.device.rack|linkify|placeholder }}
{{ terminations.0|meta:"verbose_name"|capfirst }}{{ terminations.0|meta:"verbose_name"|capfirst }} {% for term in terminations %} {{term.device|linkify}} @@ -30,15 +30,15 @@ {% elif terminations.0.power_panel %} {# Power feed #}
{% trans "Site" %}{% trans "Site" %} {{ terminations.0.power_panel.site|linkify }}
{% trans "Power Panel" %}{% trans "Power Panel" %} {{ terminations.0.power_panel|linkify }}
{{ terminations.0|meta:"verbose_name"|capfirst }}{{ terminations.0|meta:"verbose_name"|capfirst }} {% for term in terminations %} {{ term|linkify }}{% if not forloop.last %},{% endif %} @@ -48,11 +48,11 @@ {% elif terminations.0.circuit %} {# Circuit termination #}
{% trans "Provider" %}{% trans "Provider" %} {{ terminations.0.circuit.provider|linkify }}
{% trans "Circuit" %}{% trans "Circuit" %} {% for term in terminations %} {{ term.circuit|linkify }} ({{ term }}){% if not forloop.last %},{% endif %} diff --git a/netbox/templates/dcim/moduletype.html b/netbox/templates/dcim/moduletype.html index ce382c9fe..500f3b7dc 100644 --- a/netbox/templates/dcim/moduletype.html +++ b/netbox/templates/dcim/moduletype.html @@ -12,15 +12,15 @@
- + - + - + @@ -28,14 +28,14 @@ - - + +
{% trans "Manufacturer" %}{% trans "Manufacturer" %} {{ object.manufacturer|linkify }}
{% trans "Model Name" %}{% trans "Model Name" %} {{ object.model }}
{% trans "Part Number" %}{% trans "Part Number" %} {{ object.part_number|placeholder }}
{{ object.description|placeholder }}
{% trans "Weight" %} - {% if object.weight %} - {{ object.weight|floatformat }} {{ object.get_weight_unit_display }} - {% else %} - {{ ''|placeholder }} - {% endif %} - {% trans "Weight" %} + {% if object.weight %} + {{ object.weight|floatformat }} {{ object.get_weight_unit_display }} + {% else %} + {{ ''|placeholder }} + {% endif %} +
diff --git a/netbox/templates/ipam/aggregate.html b/netbox/templates/ipam/aggregate.html index 0ee630b31..1d162c4f0 100644 --- a/netbox/templates/ipam/aggregate.html +++ b/netbox/templates/ipam/aggregate.html @@ -12,23 +12,23 @@
- + - + - + - + - + - +
{% trans "Family" %}{% trans "Family" %} IPv{{ object.family }}
{% trans "RIR" %}{% trans "RIR" %} {{ object.rir }}
{% trans "Utilization" %}{% trans "Utilization" %} {% utilization_graph object.get_utilization %}
{% trans "Tenant" %}{% trans "Tenant" %} {% if object.tenant.group %} {{ object.tenant.group|linkify }} / @@ -37,11 +37,11 @@
{% trans "Date Added" %}{% trans "Date Added" %} {{ object.date_added|annotated_date|placeholder }}
{% trans "Description" %}{% trans "Description" %} {{ object.description|placeholder }}
diff --git a/netbox/templates/ipam/asn.html b/netbox/templates/ipam/asn.html index 2acbdc968..19f9db444 100644 --- a/netbox/templates/ipam/asn.html +++ b/netbox/templates/ipam/asn.html @@ -21,17 +21,17 @@
- + - + - + - +
{% trans "AS Number" %}{% trans "AS Number" %} {{ object.asn_with_asdot }}
{% trans "RIR" %}{% trans "RIR" %} {{ object.rir }}
{% trans "Tenant" %}{% trans "Tenant" %} {% if object.tenant.group %} {{ object.tenant.group|linkify }} / @@ -40,7 +40,7 @@
{% trans "Description" %}{% trans "Description" %} {{ object.description|placeholder }}
diff --git a/netbox/templates/ipam/asnrange.html b/netbox/templates/ipam/asnrange.html index c0bebd8c2..c8952c1eb 100644 --- a/netbox/templates/ipam/asnrange.html +++ b/netbox/templates/ipam/asnrange.html @@ -13,21 +13,21 @@
- + - + - + - + - +
{% trans "Name" %}{% trans "Name" %} {{ object.name }}
{% trans "RIR" %}{% trans "RIR" %} {{ object.rir }}
{% trans "Range" %}{% trans "Range" %} {{ object.range_as_string }}
{% trans "Tenant" %}{% trans "Tenant" %} {% if object.tenant.group %} {{ object.tenant.group|linkify }} / @@ -36,7 +36,7 @@
{% trans "Description" %}{% trans "Description" %} {{ object.description|placeholder }}
diff --git a/netbox/templates/ipam/fhrpgroup.html b/netbox/templates/ipam/fhrpgroup.html index 9ab718a52..3e8e6490b 100644 --- a/netbox/templates/ipam/fhrpgroup.html +++ b/netbox/templates/ipam/fhrpgroup.html @@ -20,19 +20,19 @@
- + - + - + - + @@ -52,11 +52,11 @@
{% trans "Protocol" %}{% trans "Protocol" %} {{ object.get_protocol_display }}
{% trans "Group ID" %}{% trans "Group ID" %} {{ object.group_id }}
{% trans "Name" %}{% trans "Name" %} {{ object.name|placeholder }}
{% trans "Description" %}{% trans "Description" %} {{ object.description|placeholder }}
- + - +
{% trans "Authentication Type" %}{% trans "Authentication Type" %} {{ object.get_auth_type_display|placeholder }}
{% trans "Authentication Key" %}{% trans "Authentication Key" %} {{ object.auth_key|placeholder }}
diff --git a/netbox/templates/ipam/ipaddress.html b/netbox/templates/ipam/ipaddress.html index 5021dabbd..862e7e3e2 100644 --- a/netbox/templates/ipam/ipaddress.html +++ b/netbox/templates/ipam/ipaddress.html @@ -98,11 +98,11 @@
Primary IPPrimary IP {% checkmark object.is_primary_ip %}
OOB IPOOB IP {% checkmark object.is_oob_ip %}
diff --git a/netbox/templates/ipam/prefix.html b/netbox/templates/ipam/prefix.html index 7049a6a2a..48c1cc526 100644 --- a/netbox/templates/ipam/prefix.html +++ b/netbox/templates/ipam/prefix.html @@ -129,7 +129,7 @@
{% trans "First available IP" %}{% trans "First available IP" %} {% with first_available_ip=object.get_first_available_ip %} {% if first_available_ip %} @@ -184,19 +184,19 @@