mirror of
https://github.com/netbox-community/netbox.git
synced 2026-03-29 05:42:09 +02:00
27 lines
766 B
HTML
27 lines
766 B
HTML
{% load i18n %}
|
|
{% load form_helpers %}
|
|
<div class="field-group mb-5">
|
|
{% if heading %}
|
|
<div class="row">
|
|
<h5 class="col-9 offset-3">{{ heading }}</h5>
|
|
</div>
|
|
{% endif %}
|
|
{% for layout, title, items in rows %}
|
|
{% if layout == 'field' %}
|
|
{# Single form field #}
|
|
{% render_field items.0 %}
|
|
{% elif layout == 'inline' %}
|
|
{# Multiple form fields on the same line #}
|
|
<div class="row mb-3">
|
|
<label class="col col-form-label text-lg-end">{{ title|default:'' }}</label>
|
|
{% for field in items %}
|
|
<div class="col mb-1">
|
|
{{ field }}
|
|
<div class="form-text">{% trans field.label %}</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|