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 %} - - + {% if values|length > 0 %} +
+ {% for label in labels %} {% endfor %} - - + + {% for key,value in values %} - - + {% if value is iterable %} + {% for item in value %} + + {% endfor %} + {% else %} + + + {% endif %} {% endfor %} - -
{{ label }}
{{ loop.index }}{{ key }}{{ value }}{{ item }}{{ key }}{{ value }}
-{% else %} - {{ 'sylius.ui.there_are_no_reports_created'|trans }} -{% endif %} - + + + {% else %} + {{ 'sylius.ui.there_are_no_reports_created'|trans }} + {% endif %} {% endmacro %}