{% set columns = section.render_columns %} {% set weight = columns|sum(attribute='width') %} {% if not section.automatic_widths %}{% for column in columns %}{% endfor %}{% endif %} {% if section.show_header %}{% for column in columns %}{% endfor %}{% endif %} {% set covered, keep_with_next = section.span_layout() %} {% for row in section.rows %} {% set row_index = loop.index0 %} {% set columns = section.columns_for(row_index) %} {% set options = section.row_options.get(row_index|string) %} {% set cell_options = section.cell_options.get(row_index|string, {}) %} {% set row_classes = [] %} {% if options and options.highlight %}{% set _ = row_classes.append('row-highlight') %}{% endif %} {% if row_index in keep_with_next %}{% set _ = row_classes.append('keep-with-next') %}{% endif %} {% for column in columns %} {% set col_index = loop.index0 %} {% if (row_index, col_index) not in covered %} {% set cell = cell_options.get(col_index|string) %} {% endif %} {% endfor %} {% endfor %} {% if not section.rows %}{% endif %}
{{ column.label|ui }}
1 %} rowspan="{{ cell.row_span }}"{% endif %} {%- if cell and cell.col_span and cell.col_span > 1 %} colspan="{{ cell.col_span }}"{% endif %}>{{ row[col_index]|cell(column) }}
{{ section.empty_text|ui }}