From 89d69f2b9cf765922fd3ffc1c2cc7df95eeedc3c Mon Sep 17 00:00:00 2001 From: Brian Tiemann Date: Tue, 17 Sep 2024 16:13:17 -0400 Subject: [PATCH] Wrap labels in a div to reduce inadvertently clickable area to their left in forms --- netbox/utilities/templates/form_helpers/render_field.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/netbox/utilities/templates/form_helpers/render_field.html b/netbox/utilities/templates/form_helpers/render_field.html index 47d1f8d10..dac615046 100644 --- a/netbox/utilities/templates/form_helpers/render_field.html +++ b/netbox/utilities/templates/form_helpers/render_field.html @@ -6,9 +6,11 @@ {# Render the field label (if any), except for checkboxes #} {% if label and not field|widget_type == 'checkboxinput' %} - +
+ +
{% endif %} {# Render the field itself #}