{# @copyright   Copyright (C) 2010-2021 Combodo SARL #}
{# @license     http://opensource.org/licenses/AGPL-3.0 #}

<input type="hidden" name="attr_{{ oUIBlock.GetRef() }}" value="">

{% set columns = oUIBlock.GetColumns() %}
<table id="{{ oUIBlock.GetId() }}" class="ibo-datatable listResults{% if oUIBlock.IsHidden() %} ibo-is-hidden{% endif %}" >
    <thead>
    <tr>
        {% for column in columns %}
            <th class="ibo-datatable-header" title="{{ column.description }}">{{ column.label|raw }}</th>
        {% endfor %}
    </tr>
    </thead>
    <tbody>
    {% for oSubBlock in oUIBlock.GetRows() %}
        {{ render_block(oSubBlock, {aPage: aPage}) }}
    {% endfor %}
    </tbody>
</table>