support for field.classes and field.outer_classes in type:section (#1704)

This commit is contained in:
ricardo118
2019-07-03 20:13:31 +01:00
committed by Andy Miller
parent 40a49e59ac
commit 9bb6afeb91

View File

@@ -4,7 +4,7 @@
{% if field.security is empty or authorize(array(field.security)) %}
{% if field.title or field.underline %}
<h1 {% if not field.underline %}class="no_underline {{ field.classes }}"{% elseif field.classes %}class="{{ field.classes }}"{% endif %}>{% if grav.twig.twig.filters['tu'] is defined %}{{ field.title|tu }}{% else %}{{ field.title|t }}{% endif %}</h1>
<h1 class="{{ field.classes }} {{ field.underline ?: 'no_underline' }}">{% if grav.twig.twig.filters['tu'] is defined %}{{ field.title|tu }}{% else %}{{ field.title|t }}{% endif %}</h1>
{% endif %}
{% if field.text %}
@@ -12,7 +12,7 @@
{% endif %}
{% if field.fields %}
<div class="form-section {{ field.field_classes }}">
<div class="form-section {{ field.field_classes }} {{ field.outer_classes }}">
{% for field in field.fields %}
{% if field.type %}
{% set value = field.name ? data.value(field.name) : data.toArray %}