{% load wise_icons %} {% comment %} Template for wise_core.widgets.RatingInput. The radios are emitted in DESCENDING order and the container is flex-row-reverse, which flips them back to ascending on screen. That ordering is what makes the pure-CSS highlight work: `input:checked ~ label` can only match *later* siblings, and after the reverse those are the stars to the left of the checked one. Nothing here needs JavaScript. {% endcomment %}
{% for group, options, index in widget.optgroups reversed %} {% for option in options %} {% endfor %} {% endfor %}