From 64519b722e106e7ef86a48755642698dc3a32ab8 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Wed, 22 Jul 2026 02:17:36 -0700 Subject: [PATCH] Fixes #22677: Fix display of validation errors for Cable length fields (#22733) --- netbox/templates/dcim/htmx/cable_edit.html | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/netbox/templates/dcim/htmx/cable_edit.html b/netbox/templates/dcim/htmx/cable_edit.html index 056c1679c..1dd6695e2 100644 --- a/netbox/templates/dcim/htmx/cable_edit.html +++ b/netbox/templates/dcim/htmx/cable_edit.html @@ -59,13 +59,23 @@ {% render_field form.label %} {% render_field form.description %} {% render_field form.color %} -
+
- {{ form.length }} + {% render_field_with_aria form.length %} + {% if form.length.errors %} + + {% endif %}
- {{ form.length_unit }} + {% render_field_with_aria form.length_unit %} + {% if form.length_unit.errors %} + + {% endif %}
{% render_field form.tags %}