{% for element in elements %} {% for attribute, label in attributes %} {% if loop.index == 1 %} {% include "_elements/element" %} {% else %} {{ elementType.getTableAttributeHtml(element, attribute)|raw }} {% endif %} {% endfor %} {% endfor %}