{% load i18n %} {% with id=widget.attrs.id %} {% for column_name in widget.column_names %} {% endfor %} {% for option in widget.options %} {% for cell in option.label %} {% endfor %} {% endfor %}
{% if widget.options|length > 1 %}{% endif %} {{ column_name }}
{% include option.template_name with widget=option %} {% if option.attrs.required %} {% translate 'this field is required' %} {% endif %} {% with cell_template=widget.column_templates|index:forloop.counter0 %} {% if cell_template %} {% include cell_template with value=cell %} {% else %} {{ cell }} {% endif %} {% endwith %}
{% endwith %}