mirror of
https://github.com/netbox-community/netbox.git
synced 2026-03-29 22:02:11 +02:00
Shrink & center form section titles
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
{# Render grouped fields according to Form #}
|
||||
{% for group, fields in form.Meta.fieldsets %}
|
||||
<div class="field-group">
|
||||
<h4>{{ group }}</h4>
|
||||
<h5 class="text-center">{{ group }}</h5>
|
||||
{% for name in fields %}
|
||||
{% render_field form|getfield:name %}
|
||||
{% endfor %}
|
||||
@@ -39,14 +39,14 @@
|
||||
|
||||
{% if form.custom_fields %}
|
||||
<div class="field-group">
|
||||
<h4>Custom Fields</h4>
|
||||
<h5 class="text-center">Custom Fields</h5>
|
||||
{% render_custom_fields form %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if form.comments %}
|
||||
<div class="field-group">
|
||||
<h4>Comments</h4>
|
||||
<h5 class="text-center">Comments</h5>
|
||||
{% render_field form.comments %}
|
||||
</div>
|
||||
{% endif %}
|
||||
@@ -54,7 +54,7 @@
|
||||
{% else %}
|
||||
{# Render all fields in a single group #}
|
||||
<div class="field-group">
|
||||
<h4>{{ obj_type|capfirst }}</h4>
|
||||
<h5 class="text-center">{{ obj_type|capfirst }}</h5>
|
||||
{% block form_fields %}{% render_form form %}{% endblock %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user