{# Added "wrap_label", which is lost in 1.11 by using the radio select as sub widget #} {% with id=widget.attrs.id %}{% for group, options, index in widget.optgroups %}{% if group %}
  • {{ group }}{% endif %}{% for option in options %}
  • {% include option.template_name with widget=option wrap_label=True %}
  • {% endfor %}{% if group %} {% endif %}{% endfor %} {% endwith %}