Skip to content

Commit

Permalink
fix: skip the FormFieldType's options in a container in Admin UI bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
theus77 committed Jul 28, 2024
1 parent 67144c8 commit b7e3a79
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,13 @@

<div class="row">
{% for child in dataField.getChildren|filter(c => false == c.fieldType.deleted) %}
<div class="{% if child.fieldType.displayOptions.class is defined and child.fieldType.displayOptions.class %}{{ child.fieldType.displayOptions.class }}{%else%}col-md-12{% endif %}">
{% if child.fieldType.type in ['EMS\\CoreBundle\\Form\\DataField\\FormFieldType'] %}
{{ _self.renderDataFieldBlock(child, source, compare, compareRawData, '', path, locale) }}
</div>
{% else %}
<div class="{% if child.fieldType.displayOptions.class is defined and child.fieldType.displayOptions.class %}{{ child.fieldType.displayOptions.class }}{%else%}col-md-12{% endif %}">
{{ _self.renderDataFieldBlock(child, source, compare, compareRawData, '', path, locale) }}
</div>
{% endif %}
{% if child.fieldType.displayOptions.lastOfRow is defined and child.fieldType.displayOptions.lastOfRow %}
<div class="clearfix"></div>
{% endif %}
Expand Down

0 comments on commit b7e3a79

Please sign in to comment.