{%- for group, choices in field.groups %} {% if group %}

${group}

{% endif %} {%- for choice in choices %}
{%- endfor %} {%- endfor %}