diff --git a/templates/base/components/field/layout.html.twig b/templates/base/components/field/layout.html.twig index 0c5ae0bc4..c3e3d8c9e 100644 --- a/templates/base/components/field/layout.html.twig +++ b/templates/base/components/field/layout.html.twig @@ -24,18 +24,18 @@ {% endif %} >
{{ oUIBlock.GetLabel()|raw }} - {% if oUIBlock.GetLayout()=='large' %} + {% if oUIBlock.GetLayout() == constant("Combodo\\iTop\\Application\\UI\\Base\\Component\\Field\\Field::ENUM_FIELD_LAYOUT_LARGE") %} {% if oUIBlock.GetComments() %}
{{ oUIBlock.GetComments()|raw }}
{% endif %} {% endif %}
-
+
{% for oSubBlock in oUIBlock.GetSubBlocks() %} {{ render_block(oSubBlock, {aPage: aPage}) }} {% endfor %}
- {% if oUIBlock.GetLayout()!='large' %} + {% if oUIBlock.GetLayout() != constant("Combodo\\iTop\\Application\\UI\\Base\\Component\\Field\\Field::ENUM_FIELD_LAYOUT_LARGE") %} {% if oUIBlock.GetComments() %}
{{ oUIBlock.GetComments()|raw }}
{% endif %}