{% load i18n %}
{% for section in widget.sections %} {% if section.name %}
{% block section_summary %} {{ section.name }} {% if section.total %} {{ section.checked }}/{{ section.total }} {% endif %} {% endblock section_summary %} {% else %}
{% endif %} {# Same column widths in every section, so the columns line up. #} {% for column in widget.columns %}{% endfor %} {% for column in widget.columns %} {% endfor %} {% for row in section.rows %} {% for cell in row.cells %} {% endfor %} {% endfor %}
{% block section_toggle %} {% if section.has_checkboxes and not widget.disabled %} {% endif %} {% endblock section_toggle %} {% block column_heading %} {% if column.is_checkbox and not widget.disabled %} {% else %} {{ column.label }} {% endif %} {% endblock column_heading %}
{% block row_heading %} {% if row.has_checkboxes and not widget.disabled %} {% else %} {{ row.label }} {% endif %} {% endblock row_heading %} {% if cell.html %} {% block cell %}{{ cell.html }}{% endblock %} {% else %} {% block missing_cell %}{% endblock %} {% endif %}
{% if section.name %}
{% else %}
{% endif %} {% empty %} {% block empty %}{% endblock %} {% endfor %}