{# Expects 'table' as input param. #} {% set title = table['title'] %} {% set columns = table['columns'] %} {% set rows = table['rows'] %}
{{ title }}
{% for column in columns %} {% endfor %} {% for row in rows %} {% set row_index = loop.index0 %} {% for column in columns %} {% set col_index = loop.index0 %} {% set id_name = 'row-%d-col-%d'|format(row_index, col_index) %} {% endfor %} {% endfor %}
{{ column['label'] }}Remove
{% if column['render'] == 'textbox' %} {% else %} {{ row[loop.index0] }} {% endif %}