Projet

Général

Profil

0001-templates-customize-django-s-radio-button-template-5.patch

Serghei Mihai, 01 juillet 2021 12:07

Télécharger (1,01 ko)

Voir les différences:

Subject: [PATCH] templates: customize django's radio button template (#54642)

 gadjo/templates/django/forms/widgets/radio.html | 4 ++++
 1 file changed, 4 insertions(+)
 create mode 100644 gadjo/templates/django/forms/widgets/radio.html
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 %} aria-labelledby="{{ widget.name }}" role="radiogroup">{% for group, options, index in widget.optgroups %}
2
  {% for option in options %}<li>{% include option.template_name with widget=option %}</li>{% endfor %}
3
  {% endfor %}
4
</ul>{% endwith %}
0
-