mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 17:38:37 -06:00
Fixes #19413: Group custom fields in filter tab
Replaced manual rendering of custom fields in the filter tab with the `render_custom_fields` template tag. This change ensures that custom fields are properly grouped, addressing the issue where they were previously displayed without their associated groups.
This commit is contained in:
parent
a5c0cae112
commit
cff29f9551
@ -29,11 +29,7 @@
|
|||||||
<div class="hr-text">
|
<div class="hr-text">
|
||||||
<span>{% trans "Custom Fields" %}</span>
|
<span>{% trans "Custom Fields" %}</span>
|
||||||
</div>
|
</div>
|
||||||
{% for name in filter_form.custom_fields %}
|
{% render_custom_fields filter_form %}
|
||||||
{% with field=filter_form|get_item:name %}
|
|
||||||
{% render_field field %}
|
|
||||||
{% endwith %}
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user