diff --git a/netbox/project-static/dist/netbox.css b/netbox/project-static/dist/netbox.css index 136c95583..1848ac492 100644 Binary files a/netbox/project-static/dist/netbox.css and b/netbox/project-static/dist/netbox.css differ diff --git a/netbox/project-static/styles/transitional/_cards.scss b/netbox/project-static/styles/transitional/_cards.scss index 661d4eb9c..6a7666524 100644 --- a/netbox/project-static/styles/transitional/_cards.scss +++ b/netbox/project-static/styles/transitional/_cards.scss @@ -21,5 +21,10 @@ padding: 0.5rem 0.75rem; } + // Remove bottom margin + .table { + margin-bottom: 0; + } + } } diff --git a/netbox/project-static/styles/transitional/_tables.scss b/netbox/project-static/styles/transitional/_tables.scss index 31bb69b13..1ddc81cf0 100644 --- a/netbox/project-static/styles/transitional/_tables.scss +++ b/netbox/project-static/styles/transitional/_tables.scss @@ -15,7 +15,6 @@ table.attr-table { th { color: $gray-700; font-weight: normal; - padding-left: 0; } // Restyle row border diff --git a/netbox/templates/account/profile.html b/netbox/templates/account/profile.html index cb699072c..07c701de2 100644 --- a/netbox/templates/account/profile.html +++ b/netbox/templates/account/profile.html @@ -10,40 +10,38 @@
{% trans "Account Details" %}
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
{% trans "Username" %}{{ request.user.username }}
{% trans "Full Name" %} - {% if request.user.first_name or request.user.last_name %} - {{ request.user.first_name }} {{ request.user.last_name }} - {% else %} - {{ ''|placeholder }} - {% endif %} -
{% trans "Email" %}{{ request.user.email|placeholder }}
{% trans "Account Created" %}{{ request.user.date_joined|annotated_date }}
{% trans "Superuser" %}{% checkmark request.user.is_superuser %}
{% trans "Admin Access" %}{% checkmark request.user.is_staff %}
-
+ + + + + + + + + + + + + + + + + + + + + + + + + +
{% trans "Username" %}{{ request.user.username }}
{% trans "Full Name" %} + {% if request.user.first_name or request.user.last_name %} + {{ request.user.first_name }} {{ request.user.last_name }} + {% else %} + {{ ''|placeholder }} + {% endif %} +
{% trans "Email" %}{{ request.user.email|placeholder }}
{% trans "Account Created" %}{{ request.user.date_joined|annotated_date }}
{% trans "Superuser" %}{% checkmark request.user.is_superuser %}
{% trans "Admin Access" %}{% checkmark request.user.is_staff %}
diff --git a/netbox/templates/account/token.html b/netbox/templates/account/token.html index 57d1de3f4..c65d80cb9 100644 --- a/netbox/templates/account/token.html +++ b/netbox/templates/account/token.html @@ -17,47 +17,45 @@
{% trans "Token" %}
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{% trans "Key" %} - {% if key %} -
- {% copy_content "token_id" %} -
-
{{ key }}
- {% else %} - {{ object.partial }} - {% endif %} -
{% trans "Description" %}{{ object.description|placeholder }}
{% trans "Write enabled" %}{% checkmark object.write_enabled %}
{% trans "Created" %}{{ object.created|annotated_date }}
{% trans "Expires" %}{{ object.expires|placeholder }}
{% trans "Last used" %}{{ object.last_used|placeholder }}
{% trans "Allowed IPs" %}{{ object.allowed_ips|join:", "|placeholder }}
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{% trans "Key" %} + {% if key %} +
+ {% copy_content "token_id" %} +
+
{{ key }}
+ {% else %} + {{ object.partial }} + {% endif %} +
{% trans "Description" %}{{ object.description|placeholder }}
{% trans "Write enabled" %}{% checkmark object.write_enabled %}
{% trans "Created" %}{{ object.created|annotated_date }}
{% trans "Expires" %}{{ object.expires|placeholder }}
{% trans "Last used" %}{{ object.last_used|placeholder }}
{% trans "Allowed IPs" %}{{ object.allowed_ips|join:", "|placeholder }}
diff --git a/netbox/templates/circuits/circuit.html b/netbox/templates/circuits/circuit.html index 9bc5d4a6d..69284f9b4 100644 --- a/netbox/templates/circuits/circuit.html +++ b/netbox/templates/circuits/circuit.html @@ -13,55 +13,53 @@
{% trans "Circuit" %}
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{% trans "Provider" %}{{ object.provider|linkify }}
{% trans "Account" %}{{ object.provider_account|linkify|placeholder }}
{% trans "Circuit ID" %}{{ object.cid }}
{% trans "Type" %}{{ object.type|linkify }}
{% trans "Status" %}{% badge object.get_status_display bg_color=object.get_status_color %}
{% trans "Tenant" %} - {% if object.tenant.group %} - {{ object.tenant.group|linkify }} / - {% endif %} - {{ object.tenant|linkify|placeholder }} -
{% trans "Install Date" %}{{ object.install_date|annotated_date|placeholder }}
{% trans "Termination Date" %}{{ object.termination_date|annotated_date|placeholder }}
{% trans "Commit Rate" %}{{ object.commit_rate|humanize_speed|placeholder }}
{% trans "Description" %}{{ object.description|placeholder }}
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{% trans "Provider" %}{{ object.provider|linkify }}
{% trans "Account" %}{{ object.provider_account|linkify|placeholder }}
{% trans "Circuit ID" %}{{ object.cid }}
{% trans "Type" %}{{ object.type|linkify }}
{% trans "Status" %}{% badge object.get_status_display bg_color=object.get_status_color %}
{% trans "Tenant" %} + {% if object.tenant.group %} + {{ object.tenant.group|linkify }} / + {% endif %} + {{ object.tenant|linkify|placeholder }} +
{% trans "Install Date" %}{{ object.install_date|annotated_date|placeholder }}
{% trans "Termination Date" %}{{ object.termination_date|annotated_date|placeholder }}
{% trans "Commit Rate" %}{{ object.commit_rate|humanize_speed|placeholder }}
{% trans "Description" %}{{ object.description|placeholder }}
{% include 'inc/panels/custom_fields.html' %} {% include 'inc/panels/tags.html' %} diff --git a/netbox/templates/circuits/circuittype.html b/netbox/templates/circuits/circuittype.html index fe82bc4b9..2f63eaf8a 100644 --- a/netbox/templates/circuits/circuittype.html +++ b/netbox/templates/circuits/circuittype.html @@ -16,31 +16,27 @@
-
- {% trans "Circuit Type" %} -
-
- - - - - - - - - - - - - -
{% trans "Name" %}{{ object.name }}
{% trans "Description" %}{{ object.description|placeholder }}
{% trans "Color" %} - {% if object.color %} -   - {% else %} - {{ ''|placeholder }} - {% endif %} -
-
+
{% trans "Circuit Type" %}
+ + + + + + + + + + + + + +
{% trans "Name" %}{{ object.name }}
{% trans "Description" %}{{ object.description|placeholder }}
{% trans "Color" %} + {% if object.color %} +   + {% else %} + {{ ''|placeholder }} + {% endif %} +
{% include 'inc/panels/tags.html' %} {% plugin_left_page object %} diff --git a/netbox/templates/circuits/inc/circuit_termination.html b/netbox/templates/circuits/inc/circuit_termination.html index 520e516c8..a0afebb02 100644 --- a/netbox/templates/circuits/inc/circuit_termination.html +++ b/netbox/templates/circuits/inc/circuit_termination.html @@ -25,7 +25,6 @@ {% endif %}
-
{% if termination %} {% if termination.site %} @@ -151,7 +150,8 @@ {% endfor %}
{% else %} +
{% trans "None" %} +
{% endif %} -
diff --git a/netbox/templates/circuits/provider.html b/netbox/templates/circuits/provider.html index aa0d6f1d8..d72af1ccc 100644 --- a/netbox/templates/circuits/provider.html +++ b/netbox/templates/circuits/provider.html @@ -17,25 +17,23 @@
-
{% trans "Provider" %}
-
- - - - - - - - - -
{% trans "ASNs" %} - {% for asn in object.asns.all %} - {{ asn|linkify }}{% if not forloop.last %}, {% endif %} - {% empty %} - {{ ''|placeholder }} - {% endfor %} -
{% trans "Description" %}{{ object.description|placeholder }}
-
+
{% trans "Provider" %}
+ + + + + + + + + +
{% trans "ASNs" %} + {% for asn in object.asns.all %} + {{ asn|linkify }}{% if not forloop.last %}, {% endif %} + {% empty %} + {{ ''|placeholder }} + {% endfor %} +
{% trans "Description" %}{{ object.description|placeholder }}
{% include 'inc/panels/tags.html' %} {% include 'inc/panels/comments.html' %} diff --git a/netbox/templates/circuits/provideraccount.html b/netbox/templates/circuits/provideraccount.html index b5ad37eba..caebd9975 100644 --- a/netbox/templates/circuits/provideraccount.html +++ b/netbox/templates/circuits/provideraccount.html @@ -15,22 +15,20 @@
{% trans "Provider Account" %}
-
- - - - - - - - - - - - - -
{% trans "Provider" %}{{ object.provider|linkify }}
{% trans "Account" %}{{ object.account }}
{% trans "Name" %}{{ object.name|placeholder }}
-
+ + + + + + + + + + + + + +
{% trans "Provider" %}{{ object.provider|linkify }}
{% trans "Account" %}{{ object.account }}
{% trans "Name" %}{{ object.name|placeholder }}
{% include 'inc/panels/tags.html' %} {% plugin_left_page object %} diff --git a/netbox/templates/circuits/providernetwork.html b/netbox/templates/circuits/providernetwork.html index cd12bd47f..6c45b81d8 100644 --- a/netbox/templates/circuits/providernetwork.html +++ b/netbox/templates/circuits/providernetwork.html @@ -11,53 +11,49 @@ {% endblock %} {% block content %} -
-
-
-
- {% trans "Provider Network" %} -
-
- - - - - - - - - - - - - - - - - -
{% trans "Provider" %}{{ object.provider|linkify }}
{% trans "Name" %}{{ object.name }}
{% trans "Service ID" %}{{ object.service_id|placeholder }}
{% trans "Description" %}{{ object.description|placeholder }}
-
-
- {% include 'inc/panels/tags.html' %} - {% plugin_left_page object %} +
+
+
+
{% trans "Provider Network" %}
+ + + + + + + + + + + + + + + + + +
{% trans "Provider" %}{{ object.provider|linkify }}
{% trans "Name" %}{{ object.name }}
{% trans "Service ID" %}{{ object.service_id|placeholder }}
{% trans "Description" %}{{ object.description|placeholder }}
+
+ {% include 'inc/panels/tags.html' %} + {% plugin_left_page object %}
- {% include 'inc/panels/related_objects.html' %} - {% include 'inc/panels/comments.html' %} - {% include 'inc/panels/custom_fields.html' %} - {% plugin_right_page object %} + {% include 'inc/panels/related_objects.html' %} + {% include 'inc/panels/comments.html' %} + {% include 'inc/panels/custom_fields.html' %} + {% plugin_right_page object %} +
+
+
+
+
+
{% trans "Circuits" %}
+
+
+ {% plugin_full_width_page object %}
-
-
-
-
-
{% trans "Circuits" %}
-
-
- {% plugin_full_width_page object %}
-
{% endblock %} diff --git a/netbox/templates/core/configrevision.html b/netbox/templates/core/configrevision.html index 7e7f49f2f..9c39f5031 100644 --- a/netbox/templates/core/configrevision.html +++ b/netbox/templates/core/configrevision.html @@ -41,180 +41,162 @@
{% trans "Rack Elevations" %}
-
- - - - - - - - - -
{% trans "Default unit height" %}{{ object.data.RACK_ELEVATION_DEFAULT_UNIT_HEIGHT }}
{% trans "Default unit width" %}{{ object.data.RACK_ELEVATION_DEFAULT_UNIT_WIDTH }}
-
+ + + + + + + + + +
{% trans "Default unit height" %}{{ object.data.RACK_ELEVATION_DEFAULT_UNIT_HEIGHT }}
{% trans "Default unit width" %}{{ object.data.RACK_ELEVATION_DEFAULT_UNIT_WIDTH }}
{% trans "Power Feeds" %}
-
- - - - - - - - - - - - - -
{% trans "Default voltage" %}{{ object.data.POWERFEED_DEFAULT_VOLTAGE }}
{% trans "Default amperage" %}{{ object.data.POWERFEED_DEFAULT_AMPERAGE }}
{% trans "Default max utilization" %}{{ object.data.POWERFEED_DEFAULT_MAX_UTILIZATION }}
-
+ + + + + + + + + + + + + +
{% trans "Default voltage" %}{{ object.data.POWERFEED_DEFAULT_VOLTAGE }}
{% trans "Default amperage" %}{{ object.data.POWERFEED_DEFAULT_AMPERAGE }}
{% trans "Default max utilization" %}{{ object.data.POWERFEED_DEFAULT_MAX_UTILIZATION }}
{% trans "IPAM" %}
-
- - - - - - - - - -
{% trans "Enforce global unique" %}{{ object.data.ENFORCE_GLOBAL_UNIQUE }}
{% trans "Prefer IPv4" %}{{ object.data.PREFER_IPV4 }}
-
+ + + + + + + + + +
{% trans "Enforce global unique" %}{{ object.data.ENFORCE_GLOBAL_UNIQUE }}
{% trans "Prefer IPv4" %}{{ object.data.PREFER_IPV4 }}
{% trans "Security" %}
-
- - - - - -
{% trans "Allowed URL schemes" %}{{ object.data.ALLOWED_URL_SCHEMES|join:", "|placeholder }}
-
+ + + + + +
{% trans "Allowed URL schemes" %}{{ object.data.ALLOWED_URL_SCHEMES|join:", "|placeholder }}
{% trans "Banners" %}
-
- - - - - - - - - - - - - - - - - -
{% trans "Login banner" %}{{ object.data.BANNER_LOGIN }}
{% trans "Maintenance banner" %}{{ object.data.BANNER_MAINTENANCE }}
{% trans "Top banner" %}{{ object.data.BANNER_TOP }}
{% trans "Bottom banner" %}{{ object.data.BANNER_BOTTOM }}
-
+ + + + + + + + + + + + + + + + + +
{% trans "Login banner" %}{{ object.data.BANNER_LOGIN }}
{% trans "Maintenance banner" %}{{ object.data.BANNER_MAINTENANCE }}
{% trans "Top banner" %}{{ object.data.BANNER_TOP }}
{% trans "Bottom banner" %}{{ object.data.BANNER_BOTTOM }}
{% trans "Pagination" %}
-
- - - - - - - - - -
{% trans "Paginate count" %}{{ object.data.PAGINATE_COUNT }}
{% trans "Max page size" %}{{ object.data.MAX_PAGE_SIZE }}
-
+ + + + + + + + + +
{% trans "Paginate count" %}{{ object.data.PAGINATE_COUNT }}
{% trans "Max page size" %}{{ object.data.MAX_PAGE_SIZE }}
{% trans "Validation" %}
-
- - - - {% if object.data.CUSTOM_VALIDATORS %} - - {% else %} - - {% endif %} - - - - {% if object.data.PROTECTION_RULES %} - - {% else %} - - {% endif %} - -
{% trans "Custom validators" %} -
{{ object.data.CUSTOM_VALIDATORS|json }}
-
{{ ''|placeholder }}
{% trans "Protection rules" %} -
{{ object.data.PROTECTION_RULES|json }}
-
{{ ''|placeholder }}
-
+ + + + {% if object.data.CUSTOM_VALIDATORS %} + + {% else %} + + {% endif %} + + + + {% if object.data.PROTECTION_RULES %} + + {% else %} + + {% endif %} + +
{% trans "Custom validators" %} +
{{ object.data.CUSTOM_VALIDATORS|json }}
+
{{ ''|placeholder }}
{% trans "Protection rules" %} +
{{ object.data.PROTECTION_RULES|json }}
+
{{ ''|placeholder }}
{% trans "User Preferences" %}
-
- - - - {% if object.data.DEFAULT_USER_PREFERENCES %} - - {% else %} - - {% endif %} - -
{% trans "Default user preferences" %} -
{{ object.data.DEFAULT_USER_PREFERENCES|json }}
-
{{ ''|placeholder }}
-
+ + + + {% if object.data.DEFAULT_USER_PREFERENCES %} + + {% else %} + + {% endif %} + +
{% trans "Default user preferences" %} +
{{ object.data.DEFAULT_USER_PREFERENCES|json }}
+
{{ ''|placeholder }}
{% trans "Miscellaneous" %}
-
- - - - - - - - - - - - - - - - - - - - - -
{% trans "Maintenance mode" %}{{ object.data.MAINTENANCE_MODE }}
{% trans "GraphQL enabled" %}{{ object.data.GRAPHQL_ENABLED }}
{% trans "Changelog retention" %}{{ object.data.CHANGELOG_RETENTION }}
{% trans "Job retention" %}{{ object.data.JOB_RETENTION }}
{% trans "Maps URL" %}{{ object.data.MAPS_URL }}
-
+ + + + + + + + + + + + + + + + + + + + + +
{% trans "Maintenance mode" %}{{ object.data.MAINTENANCE_MODE }}
{% trans "GraphQL enabled" %}{{ object.data.GRAPHQL_ENABLED }}
{% trans "Changelog retention" %}{{ object.data.CHANGELOG_RETENTION }}
{% trans "Job retention" %}{{ object.data.JOB_RETENTION }}
{% trans "Maps URL" %}{{ object.data.MAPS_URL }}
diff --git a/netbox/templates/core/datafile.html b/netbox/templates/core/datafile.html index 19ac3ab14..c51ad3093 100644 --- a/netbox/templates/core/datafile.html +++ b/netbox/templates/core/datafile.html @@ -30,36 +30,34 @@
{% trans "Data File" %}
-
- - - - - - - - - - - - - - - - - - - - - -
{% trans "Source" %}{{ object.source|linkify }}
{% trans "Path" %} - {{ object.path }} - {% copy_content "datafile_path" %} -
{% trans "Last Updated" %}{{ object.last_updated }}
{% trans "Size" %}{{ object.size }} {% trans "bytes" %}
{% trans "SHA256 Hash" %} - {{ object.hash }} - {% copy_content "datafile_hash" %} -
-
+ + + + + + + + + + + + + + + + + + + + + +
{% trans "Source" %}{{ object.source|linkify }}
{% trans "Path" %} + {{ object.path }} + {% copy_content "datafile_path" %} +
{% trans "Last Updated" %}{{ object.last_updated }}
{% trans "Size" %}{{ object.size }} {% trans "bytes" %}
{% trans "SHA256 Hash" %} + {{ object.hash }} + {% copy_content "datafile_hash" %} +
{% trans "Content" %}
diff --git a/netbox/templates/core/datasource.html b/netbox/templates/core/datasource.html index 569e4889d..665ea3092 100644 --- a/netbox/templates/core/datasource.html +++ b/netbox/templates/core/datasource.html @@ -29,53 +29,51 @@
{% trans "Data Source" %}
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{% trans "Name" %}{{ object.name }}
{% trans "Type" %}{{ object.get_type_display }}
{% trans "Enabled" %}{% checkmark object.enabled %}
{% trans "Status" %}{% badge object.get_status_display bg_color=object.get_status_color %}
{% trans "Last synced" %}{{ object.last_synced|placeholder }}
{% trans "Description" %}{{ object.description|placeholder }}
{% trans "URL" %} - {% if not object.type.is_local %} - {{ object.source_url }} - {% else %} - {{ object.source_url }} - {% endif %} -
{% trans "Ignore rules" %} - {% if object.ignore_rules %} -
{{ object.ignore_rules }}
- {% else %} - {{ ''|placeholder }} - {% endif %}
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{% trans "Name" %}{{ object.name }}
{% trans "Type" %}{{ object.get_type_display }}
{% trans "Enabled" %}{% checkmark object.enabled %}
{% trans "Status" %}{% badge object.get_status_display bg_color=object.get_status_color %}
{% trans "Last synced" %}{{ object.last_synced|placeholder }}
{% trans "Description" %}{{ object.description|placeholder }}
{% trans "URL" %} + {% if not object.type.is_local %} + {{ object.source_url }} + {% else %} + {{ object.source_url }} + {% endif %} +
{% trans "Ignore rules" %} + {% if object.ignore_rules %} +
{{ object.ignore_rules }}
+ {% else %} + {{ ''|placeholder }} + {% endif %}
{% include 'inc/panels/tags.html' %} {% include 'inc/panels/comments.html' %} @@ -84,7 +82,6 @@
{% trans "Backend" %}
-
{% with backend=object.backend_class %} {% for name, field in backend.parameters.items %} @@ -104,8 +101,7 @@ {% endfor %}
- {% endwith %} -
+ {% endwith %}
{% include 'inc/panels/related_objects.html' %} {% include 'inc/panels/custom_fields.html' %} diff --git a/netbox/templates/core/job.html b/netbox/templates/core/job.html index deb651739..8539e43a2 100644 --- a/netbox/templates/core/job.html +++ b/netbox/templates/core/job.html @@ -19,64 +19,60 @@
{% trans "Job" %}
-
- +
+ + + + + + + + + + + + + {% if object.error %} - - + + - - - - - - - - - {% if object.error %} - - - - - {% endif %} - - - - -
{% trans "Object Type" %} + {{ object.object_type }} +
{% trans "Name" %}{{ object.name|placeholder }}
{% trans "Status" %}{% badge object.get_status_display object.get_status_color %}
{% trans "Object Type" %} - {{ object.object_type }} - {% trans "Error" %}{{ object.error }}
{% trans "Name" %}{{ object.name|placeholder }}
{% trans "Status" %}{% badge object.get_status_display object.get_status_color %}
{% trans "Error" %}{{ object.error }}
{% trans "Created By" %}{{ object.user|placeholder }}
-
+ {% endif %} + + {% trans "Created By" %} + {{ object.user|placeholder }} + +
{% trans "Scheduling" %}
-
- - - - - - - - - - - - - - - - - -
{% trans "Created" %}{{ object.created|annotated_date }}
{% trans "Scheduled" %} - {{ object.scheduled|annotated_date|placeholder }} - {% if object.interval %} - ({% blocktrans with interval=object.interval %}every {{ interval }} seconds{% endblocktrans %}) - {% endif %} -
{% trans "Started" %}{{ object.started|annotated_date|placeholder }}
{% trans "Completed" %}{{ object.completed|annotated_date|placeholder }}
-
+ + + + + + + + + + + + + + + + + +
{% trans "Created" %}{{ object.created|annotated_date }}
{% trans "Scheduled" %} + {{ object.scheduled|annotated_date|placeholder }} + {% if object.interval %} + ({% blocktrans with interval=object.interval %}every {{ interval }} seconds{% endblocktrans %}) + {% endif %} +
{% trans "Started" %}{{ object.started|annotated_date|placeholder }}
{% trans "Completed" %}{{ object.completed|annotated_date|placeholder }}
diff --git a/netbox/templates/dcim/cable.html b/netbox/templates/dcim/cable.html index caa1a9fe0..91ca10269 100644 --- a/netbox/templates/dcim/cable.html +++ b/netbox/templates/dcim/cable.html @@ -10,55 +10,53 @@
{% trans "Cable" %}
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{% trans "Type" %}{{ object.get_type_display|placeholder }}
{% trans "Status" %}{% badge object.get_status_display bg_color=object.get_status_color %}
{% trans "Tenant" %} - {% if object.tenant.group %} - {{ object.tenant.group|linkify }} / - {% endif %} - {{ object.tenant|linkify|placeholder }} -
{% trans "Label" %}{{ object.label|placeholder }}
{% trans "Description" %}{{ object.description|placeholder }}
{% trans "Color" %} - {% if object.color %} -   - {% else %} - {{ ''|placeholder }} - {% endif %} -
{% trans "Length" %} - {% if object.length is not None %} - {{ object.length|floatformat }} {{ object.get_length_unit_display }} - {% else %} - {{ ''|placeholder }} - {% endif %} -
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{% trans "Type" %}{{ object.get_type_display|placeholder }}
{% trans "Status" %}{% badge object.get_status_display bg_color=object.get_status_color %}
{% trans "Tenant" %} + {% if object.tenant.group %} + {{ object.tenant.group|linkify }} / + {% endif %} + {{ object.tenant|linkify|placeholder }} +
{% trans "Label" %}{{ object.label|placeholder }}
{% trans "Description" %}{{ object.description|placeholder }}
{% trans "Color" %} + {% if object.color %} +   + {% else %} + {{ ''|placeholder }} + {% endif %} +
{% trans "Length" %} + {% if object.length is not None %} + {{ object.length|floatformat }} {{ object.get_length_unit_display }} + {% else %} + {{ ''|placeholder }} + {% endif %} +
{% include 'inc/panels/custom_fields.html' %} {% include 'inc/panels/tags.html' %} @@ -68,15 +66,11 @@
{% trans "Termination" %} A
-
- {% include 'dcim/inc/cable_termination.html' with terminations=object.a_terminations %} -
+ {% include 'dcim/inc/cable_termination.html' with terminations=object.a_terminations %}
{% trans "Termination" %} B
-
- {% include 'dcim/inc/cable_termination.html' with terminations=object.b_terminations %} -
+ {% include 'dcim/inc/cable_termination.html' with terminations=object.b_terminations %}
{% plugin_right_page object %}
diff --git a/netbox/templates/dcim/cable_trace.html b/netbox/templates/dcim/cable_trace.html index e925c79d8..4fe7ff024 100644 --- a/netbox/templates/dcim/cable_trace.html +++ b/netbox/templates/dcim/cable_trace.html @@ -79,43 +79,39 @@ {# Related paths #}
-
- {% trans "Related Paths" %} -
-
- - - - - - - - - - {% for cablepath in related_paths %} - - - - - - {% empty %} - + + + {% empty %} + + {% endfor %} + +
{% trans "Origin" %}{% trans "Destination" %}{% trans "Segments" %}
- {{ cablepath.origins|join:", " }} - - {% if cablepath.destinations %} - {{ cablepath.destinations|join:", " }} - {% else %} - {% trans "Incomplete" %} - {% endif %} - - {{ cablepath.segment_count }} -
- {% trans "None found" %} +
{% trans "Related Paths" %}
+ + + + + + + + + + {% for cablepath in related_paths %} + + - {% endfor %} - -
{% trans "Origin" %}{% trans "Destination" %}{% trans "Segments" %}
+ {{ cablepath.origins|join:", " }}
- +
+ {% if cablepath.destinations %} + {{ cablepath.destinations|join:", " }} + {% else %} + {% trans "Incomplete" %} + {% endif %} + + {{ cablepath.segment_count }} +
+ {% trans "None found" %} +
diff --git a/netbox/templates/dcim/consoleport.html b/netbox/templates/dcim/consoleport.html index 52da72142..b26f21753 100644 --- a/netbox/templates/dcim/consoleport.html +++ b/netbox/templates/dcim/consoleport.html @@ -14,41 +14,37 @@
-
- {% trans "Console Port" %} -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{% trans "Device" %}{{ object.device|linkify }}
{% trans "Module" %}{{ object.module|linkify|placeholder }}
{% trans "Name" %}{{ object.name }}
{% trans "Label" %}{{ object.label|placeholder }}
{% trans "Type" %}{{ object.get_type_display }}
{% trans "Speed" %}{{ object.get_speed_display }}
{% trans "Description" %}{{ object.description|placeholder }}
-
+
{% trans "Console Port" %}
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{% trans "Device" %}{{ object.device|linkify }}
{% trans "Module" %}{{ object.module|linkify|placeholder }}
{% trans "Name" %}{{ object.name }}
{% trans "Label" %}{{ object.label|placeholder }}
{% trans "Type" %}{{ object.get_type_display }}
{% trans "Speed" %}{{ object.get_speed_display }}
{% trans "Description" %}{{ object.description|placeholder }}
{% include 'inc/panels/custom_fields.html' %} {% include 'inc/panels/tags.html' %} @@ -57,35 +53,36 @@
{% trans "Connection" %}
-
- {% if object.mark_connected %} - {% trans "Marked as connected" %} - {% elif object.cable %} - {% include 'dcim/inc/connection_endpoints.html' with trace_url='dcim:consoleport_trace' %} - {% else %} -
- {% trans "Not Connected" %} - {% if perms.dcim.add_cable %} - - {% endif %} -
- {% endif %} -
+ {% if object.mark_connected %} +
+ + {% trans "Marked as connected" %} +
+ {% elif object.cable %} + {% include 'dcim/inc/connection_endpoints.html' with trace_url='dcim:consoleport_trace' %} + {% else %} +
+ {% trans "Not Connected" %} + {% if perms.dcim.add_cable %} + + {% endif %} +
+ {% endif %}
{% include 'dcim/inc/panels/inventory_items.html' %} {% plugin_right_page object %} diff --git a/netbox/templates/dcim/consoleserverport.html b/netbox/templates/dcim/consoleserverport.html index 86fc705bd..269615f49 100644 --- a/netbox/templates/dcim/consoleserverport.html +++ b/netbox/templates/dcim/consoleserverport.html @@ -14,41 +14,37 @@
-
- {% trans "Console Server Port" %} -
-
- - - - - - - - - - - - - - - - - - - - - - - - +
{% trans "Console Server Port" %}
+
{% trans "Device" %}{{ object.device|linkify }}
{% trans "Module" %}{{ object.module|linkify|placeholder }}
{% trans "Name" %}{{ object.name }}
{% trans "Label" %}{{ object.label|placeholder }}
{% trans "Type" %}{{ object.get_type_display|placeholder }}
{% trans "Speed" %}{{ object.get_speed_display|placeholder }}
+ + + - - - - -
{% trans "Device" %}{{ object.device|linkify }}
{% trans "Description" %}{{ object.description|placeholder }}
-
+ + {% trans "Module" %} + {{ object.module|linkify|placeholder }} + + + {% trans "Name" %} + {{ object.name }} + + + {% trans "Label" %} + {{ object.label|placeholder }} + + + {% trans "Type" %} + {{ object.get_type_display|placeholder }} + + + {% trans "Speed" %} + {{ object.get_speed_display|placeholder }} + + + {% trans "Description" %} + {{ object.description|placeholder }} + +
{% include 'inc/panels/custom_fields.html' %} {% include 'inc/panels/tags.html' %} @@ -58,34 +54,36 @@
{% trans "Connection" %}
- {% if object.mark_connected %} - {% trans "Marked as connected" %} - {% elif object.cable %} - {% include 'dcim/inc/connection_endpoints.html' with trace_url='dcim:consoleserverport_trace' %} - {% else %} -
- {% trans "Not Connected" %} - {% if perms.dcim.add_cable %} - - {% endif %} -
- {% endif %} -
+ {% if object.mark_connected %} +
+ + {% trans "Marked as connected" %} +
+ {% elif object.cable %} + {% include 'dcim/inc/connection_endpoints.html' with trace_url='dcim:consoleserverport_trace' %} + {% else %} +
+ {% trans "Not Connected" %} + {% if perms.dcim.add_cable %} + + {% endif %} +
+ {% endif %}
{% include 'dcim/inc/panels/inventory_items.html' %} {% plugin_right_page object %} diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index ef7bb79e6..b725b69ec 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -12,142 +12,136 @@
{% trans "Device" %}
-
- - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{% trans "Region" %}{% nested_tree object.site.region %}
{% trans "Site" %}{{ object.site|linkify }}
{% trans "Location" %}{% nested_tree object.location %}
{% trans "Rack" %} - {% if object.rack %} - {{ object.rack|linkify }} -
- - - -
- {% else %} - {{ ''|placeholder }} - {% endif %} -
{% trans "Position" %} - {% if object.parent_bay %} - {% with object.parent_bay.device as parent %} - {{ parent|linkify }} / {{ object.parent_bay }} - {% if parent.position %} - (U{{ parent.position|floatformat }} / {{ parent.get_face_display }}) - {% endif %} - {% endwith %} - {% elif object.rack and object.position %} - U{{ object.position|floatformat }} / {{ object.get_face_display }} - {% elif object.rack and object.device_type.u_height %} - {% trans "Not racked" %} - {% else %} - {{ ''|placeholder }} - {% endif %} -
{% trans "GPS Coordinates" %} - {% if object.latitude and object.longitude %} - {% if config.MAPS_URL %} + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{% trans "Region" %}{% nested_tree object.site.region %}
{% trans "Site" %}{{ object.site|linkify }}
{% trans "Location" %}{% nested_tree object.location %}
{% trans "Rack" %} + {% if object.rack %} + {{ object.rack|linkify }} - {% endif %} - {{ object.latitude }}, {{ object.longitude }} {% else %} - {{ ''|placeholder }} + {{ ''|placeholder }} {% endif %} -
{% trans "Tenant" %} - {% if object.tenant.group %} - {{ object.tenant.group|linkify }} / - {% endif %} - {{ object.tenant|linkify|placeholder }} -
{% trans "Device Type" %} - {{ object.device_type|linkify:"get_full_name" }} ({{ object.device_type.u_height|floatformat }}U) -
{% trans "Description" %}{{ object.description|placeholder }}
{% trans "Airflow" %} - {{ object.get_airflow_display|placeholder }} -
{% trans "Serial Number" %}{{ object.serial|placeholder }}
{% trans "Asset Tag" %}{{ object.asset_tag|placeholder }}
{% trans "Config Template" %}{{ object.config_template|linkify|placeholder }}
- +
{% trans "Position" %} + {% if object.parent_bay %} + {% with object.parent_bay.device as parent %} + {{ parent|linkify }} / {{ object.parent_bay }} + {% if parent.position %} + (U{{ parent.position|floatformat }} / {{ parent.get_face_display }}) + {% endif %} + {% endwith %} + {% elif object.rack and object.position %} + U{{ object.position|floatformat }} / {{ object.get_face_display }} + {% elif object.rack and object.device_type.u_height %} + {% trans "Not racked" %} + {% else %} + {{ ''|placeholder }} + {% endif %} +
{% trans "GPS Coordinates" %} + {% if object.latitude and object.longitude %} + {% if config.MAPS_URL %} + + {% endif %} + {{ object.latitude }}, {{ object.longitude }} + {% else %} + {{ ''|placeholder }} + {% endif %} +
{% trans "Tenant" %} + {% if object.tenant.group %} + {{ object.tenant.group|linkify }} / + {% endif %} + {{ object.tenant|linkify|placeholder }} +
{% trans "Device Type" %} + {{ object.device_type|linkify:"get_full_name" }} ({{ object.device_type.u_height|floatformat }}U) +
{% trans "Description" %}{{ object.description|placeholder }}
{% trans "Airflow" %} + {{ object.get_airflow_display|placeholder }} +
{% trans "Serial Number" %}{{ object.serial|placeholder }}
{% trans "Asset Tag" %}{{ object.asset_tag|placeholder }}
{% trans "Config Template" %}{{ object.config_template|linkify|placeholder }}
{% if vc_members %}
-
- {% trans "Virtual Chassis" %} -
-
- - - - - - +
{% trans "Virtual Chassis" %}
+
{% trans "Device" %}{% trans "Position" %}{% trans "Master" %}{% trans "Priority" %}
+ + + + + + + {% for vc_member in vc_members %} + + + + + - {% for vc_member in vc_members %} - - - - - - - {% endfor %} -
{% trans "Device" %}{% trans "Position" %}{% trans "Master" %}{% trans "Priority" %}
+ {{ vc_member|linkify }} + + {% badge vc_member.vc_position show_empty=True %} + + {% if object.virtual_chassis.master == vc_member %}{% endif %} + + {{ vc_member.vc_priority|placeholder }} +
- {{ vc_member|linkify }} - - {% badge vc_member.vc_position show_empty=True %} - - {% if object.virtual_chassis.master == vc_member %}{% endif %} - - {{ vc_member.vc_priority|placeholder }} -
-
+ {% endfor %} +