netbox/netbox/utilities/templates/form_helpers/render_custom_fields.html
Arthur Hanson 353db09656
17422 update custom field group display tag (#17423)
* 17422 update custom field group display tag

* 17422 review changes
2024-09-10 14:02:03 -04:00

17 lines
434 B
HTML

{% load form_helpers %}
{% for group, fields in form.custom_field_groups.items %}
{% if group %}
<div class="row">
<h3 class="col-9 offset-3 mb-3 h4">{{ group }}</h3>
</div>
{% endif %}
{% for name in fields %}
{% if name in form.nullable_fields %}
{% render_field form|getfield:name bulk_nullable=True %}
{% else %}
{% render_field form|getfield:name %}
{% endif %}
{% endfor %}
{% endfor %}