templates: customize checkbox and radio buttons rendering (#56114)

This commit is contained in:
Serghei Mihai 2021-08-12 10:45:45 +02:00
parent 6b941855c8
commit d380d5537a
2 changed files with 2 additions and 0 deletions

View File

@ -0,0 +1 @@
<label>{% include "django/forms/widgets/input.html" %}<span></span></label>

View File

@ -0,0 +1 @@
{% if widget.wrap_label %}<label{% if widget.attrs.id %} for="{{ widget.attrs.id }}"{% endif %}>{% endif %}{% include "django/forms/widgets/input.html" %}{% if widget.wrap_label %} <span>{{ widget.label }}</span></label>{% endif %}