{% set all_types = types.layout|merge(types.content) %} {{ status_messages }}

{{ 'Add Item'|t }}

{% if all_types|length > 1 %}
{% if types.layout %}
{% endif %} {% for type in types.layout %}
{% if type.image %}{% endif %}{{ type.label }}
{% endfor %} {% if types.layout %}
{% endif %} {% if types.content %}
{% endif %} {% for type in types.content %}
{% if type.image %}{% endif %}{{ type.label }}
{% endfor %} {% if types.content %}
{% endif %}
{% else %}
{{ empty_message }}
{% endif %}