mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 04:02:52 -06:00
Fixes: #17083 - Wrap labels in a div to reduce inadvertently clickable area to their left in forms (#17525)
* Wrap labels in a div to reduce inadvertently clickable area to their left in forms * Set form label to be inline-block
This commit is contained in:
parent
6d0a3485a1
commit
8deaaae44b
@ -6,9 +6,11 @@
|
|||||||
|
|
||||||
{# Render the field label (if any), except for checkboxes #}
|
{# Render the field label (if any), except for checkboxes #}
|
||||||
{% if label and not field|widget_type == 'checkboxinput' %}
|
{% if label and not field|widget_type == 'checkboxinput' %}
|
||||||
<label for="{{ field.id_for_label }}" class="col-sm-3 col-form-label text-lg-end{% if field.field.required %} required{% endif %}">
|
<div class="col-sm-3 text-lg-end">
|
||||||
{{ label }}
|
<label for="{{ field.id_for_label }}" class="col-form-label d-inline-block{% if field.field.required %} required{% endif %}">
|
||||||
</label>
|
{{ label }}
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{# Render the field itself #}
|
{# Render the field itself #}
|
||||||
|
Loading…
Reference in New Issue
Block a user