{% block table %}
{% if block("header") is defined %} {{ block("header") }} {% elseif columns is defined %} {% for column, label in columns %} {% if block("column_" ~ column) is defined %} {{ block("column_" ~ column) }} {% elseif block("column" ~ loop.index0) is defined %} {{ block("column" ~ loop.index0) }} {% elseif loop.first and block("first_column") is defined %} {{ block("first_column") }} {% elseif loop.last and block("last_column") is defined %} {{ block("last_column") }} {% else %} {% endif %} {% endfor %} {% endif %} {% for row in rows %} {% if block("row") is defined %} {{ block("row") }} {% else %} {% if columns is defined %} {% set cells = columns|keys %} {% else %} {% set cells = row|keys %} {% endif %} {% for cell in cells %} {% set value = attribute(row, cell) is defined ? attribute(row, cell) : null %} {% if block("cell_" ~ cell) is defined %} {{ block("cell_" ~ cell) }} {% elseif block("cell" ~ loop.index0) is defined %} {{ block("cell" ~ loop.index0) }} {% elseif loop.first and block("first_cell") is defined %} {{ block("first_cell") }} {% elseif loop.last and block("last_cell") is defined %} {{ block("last_cell") }} {% else %} {% endif %} {% endfor %} {% endif %} {% else %} {% if block("empty") is defined %} {{ block("empty") }} {% elseif columns is defined %} {% endif %} {% endfor %} {% if block("footer") is defined %} {{ block("footer") }} {% endif %}
{{ label }}
{{ value }}
Nincs találat
{% endblock table %}