{% macro radioTableHeader(choices) %} {%- for choice in choices -%} {{ __(choice.label | d('')) }} {%- endfor -%} {% endmacro %} {% macro radioTableRows(rows, choices) %} {%- for row in rows -%} {{ row.label}} {%- for choice in choices -%} {%- endfor -%} {%- endfor -%} {% endmacro %}
{# Text entry for autocompleting the next item #} {# { label: 'Admin', value: 'admin'} { name:'blog', label: 'Blog' } #} {{ radioTableHeader(data.choices) }} {{ radioTableRows(data.rows, data.choices) }}