Shrink & center form section titles

This commit is contained in:
jeremystretch
2021-07-22 12:31:50 -04:00
parent 7bfc66e218
commit 84479925bf
13 changed files with 40 additions and 40 deletions

View File

@@ -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 %}