{% for id_, tab in tabs.items() if id_ == 'info' or tab.buttons or tab.table.rows %}
{{ id_|tab_header(active=True if loop.first else False, table=tab.table) }}
{% endfor %}
{% for id_, tab in tabs.items() if id_ == 'info' or tab.buttons or tab.table.rows %}
{% if loop.index == 1 %}