{% load i18n %}{% comment %} Data table in a scrolling region (keyboard-focusable, so wide tables scroll without a mouse). Parameters: caption (also names the region), columns (list of {label, numeric}), rows (list of lists of cells), empty (text when there are no rows). {% endcomment %}
{% for column in columns %}{% endfor %} {% for row in rows %} {% for cell in row %}{% if forloop.first %}{% else %}{{ cell }}{% endif %}{% endfor %} {% empty %} {% endfor %}
{{ caption }}
{{ column.label }}
{{ cell }}
{{ empty|default:_("No rows to show.") }}