{% set globalActions = datatable.actions|filter(action => action.global) %} {% set rowActions = datatable.actions|filter(action => not action.global) %}
{% if globalActions|length %}
{% for action in globalActions %} {% endfor %}
{% endif %}
{% if datatable.rows|length %} {% if datatable.filteringEnabled %} {% endif %} {% if datatable.rows|length %} {% for row in datatable.rows %} {% set rowData = row[0].data %} {% endfor %} {% endif %}
{% else %}
{{ 'no_records_found'|trans({}, datatable.translationDomain) }} {% if app.request.get('filter') %}

{{ 'button_cancel_filters'|trans({}, datatable.translationDomain) }} {% endif %}
{% endif %}