diff --git a/Resources/views/Table/macros.html.twig b/Resources/views/Table/macros.html.twig index 414f9cd..14a2bc3 100644 --- a/Resources/views/Table/macros.html.twig +++ b/Resources/views/Table/macros.html.twig @@ -1,29 +1,35 @@ {% macro list(labels, fields, values) %} -{% import 'SyliusResourceBundle:Macros:buttons.html.twig' as buttons %} + {% import 'SyliusResourceBundle:Macros:buttons.html.twig' as buttons %} -{% if values|length > 0 %} -
{% for label in labels %} | {{ label }} | {% endfor %}||||
---|---|---|---|---|---|
{{ loop.index }} | -{{ key }} | -{{ value }} | + {% if value is iterable %} + {% for item in value %} +{{ item }} | + {% endfor %} + {% else %} +{{ key }} | +{{ value }} | + {% endif %}