Projet

Général

Profil

0001-templates-customize-checkbox-and-radio-buttons-rende.patch

Serghei Mihai (congés, retour 15/05), 12 août 2021 15:43

Télécharger (1,34 ko)

Voir les différences:

Subject: [PATCH] templates: customize checkbox and radio buttons rendering
 (#56114)

 gadjo/templates/django/forms/widgets/checkbox.html     | 1 +
 gadjo/templates/django/forms/widgets/radio_option.html | 1 +
 2 files changed, 2 insertions(+)
 create mode 100644 gadjo/templates/django/forms/widgets/checkbox.html
 create mode 100644 gadjo/templates/django/forms/widgets/radio_option.html
gadjo/templates/django/forms/widgets/checkbox.html
1
<label>{% include "django/forms/widgets/input.html" %}<span></span></label>
gadjo/templates/django/forms/widgets/radio_option.html
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 %}
0
-