mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-24 00:15:17 -06:00
Omit fieldset header if none
This commit is contained in:
parent
5888038996
commit
f055235ef1
@ -59,9 +59,11 @@ Context:
|
|||||||
{# Render grouped fields according to Form #}
|
{# Render grouped fields according to Form #}
|
||||||
{% for group, fields in form.fieldsets %}
|
{% for group, fields in form.fieldsets %}
|
||||||
<div class="field-group mb-5">
|
<div class="field-group mb-5">
|
||||||
<div class="row mb-2">
|
{% if group %}
|
||||||
<h5 class="offset-sm-3">{{ group }}</h5>
|
<div class="row mb-2">
|
||||||
</div>
|
<h5 class="offset-sm-3">{{ group }}</h5>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% for name in fields %}
|
{% for name in fields %}
|
||||||
{% with field=form|getfield:name %}
|
{% with field=form|getfield:name %}
|
||||||
{% if not field.field.widget.is_hidden %}
|
{% if not field.field.widget.is_hidden %}
|
||||||
|
Loading…
Reference in New Issue
Block a user