0001-templates-customize-django-s-radio-button-template-5.patch
gadjo/templates/django/forms/widgets/radio.html | ||
---|---|---|
1 |
{% with id=widget.attrs.id %}<ul{% if id %} id="{{ id }}"{% endif %}{% if widget.attrs.class %} class="{{ widget.attrs.class }}"{% endif %}{% if id %} aria-labelledby="{{ id }}_0"{% endif %} role="radiogroup">{% for group, options, index in widget.optgroups %}{% if group %} |
|
2 |
<li>{{ group }}<ul{% if id %} id="{{ id }}_{{ index }}"{% endif %}>{% endif %}{% for option in options %} |
|
3 |
<li>{% include option.template_name with widget=option %}</li>{% endfor %}{% if group %} |
|
4 |
</ul></li>{% endif %}{% endfor %} |
|
5 |
</ul>{% endwith %} |
|
0 |
- |