{% load i18n %}{% comment %} The data table (#227): one framed object with dense hairline rows (32px), a sticky header on the sunken tint, numbers and codes in mono with tabular figures, in a scrolling region (keyboard-focusable, so wide tables scroll without a mouse). Parameters: caption (also names the region), columns (list of {label, numeric, code}: numeric aligns the column to the end, code sets it in mono), rows (list of lists of cells; the first is the row's header), selected (optional: the number of the selected row, from 1, marked aria-current), 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.") }}