From 7a54302a653d03d08104a8cedb8ae408a781f4fa Mon Sep 17 00:00:00 2001 From: Daniel Sheppard Date: Tue, 23 Apr 2024 14:04:37 -0500 Subject: [PATCH] Minor tweaks --- netbox/dcim/views.py | 1 - netbox/templates/dcim/cable_edit.html | 18 ++---------------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/netbox/dcim/views.py b/netbox/dcim/views.py index ddbbb7642..d3ea3acd7 100644 --- a/netbox/dcim/views.py +++ b/netbox/dcim/views.py @@ -23,7 +23,6 @@ from netbox.constants import DEFAULT_ACTION_PERMISSIONS from netbox.views import generic from tenancy.views import ObjectContactsView from utilities.forms import ConfirmationForm -from utilities.htmx import is_htmx from utilities.paginator import EnhancedPaginator, get_paginate_count from utilities.permissions import get_permission_for_model from utilities.query_functions import CollateAsChar diff --git a/netbox/templates/dcim/cable_edit.html b/netbox/templates/dcim/cable_edit.html index f7058e47d..c27ca2992 100644 --- a/netbox/templates/dcim/cable_edit.html +++ b/netbox/templates/dcim/cable_edit.html @@ -21,7 +21,7 @@ {% endif %} {% if 'a_terminations' in form.fields %} {% render_field form.a_terminations %} - {% elif 'b_terminations' in form.fields %} + {% else %}
@@ -31,13 +31,6 @@
- {% else %} -
- -
Cannot initialize dynamic cable termination selection form
- -
This field is required.
-
{% endif %} @@ -57,7 +50,7 @@ {% endif %} {% if 'b_terminations' in form.fields %} {% render_field form.b_terminations %} - {% elif 'a_terminations' in form.fields %} + {% else %}
@@ -67,13 +60,6 @@
- {% else %} -
- -
Cannot initialize dynamic cable termination selection form
- -
This field is required.
-
{% endif %}