Merge pull request #4894 from reggieriser/fix-allauth-element-errors

Fix invalid HTML in django-allauth field element template
This commit is contained in:
Jelmer 2024-02-28 11:18:17 +01:00 committed by GitHub
commit 96680378f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,7 +33,7 @@
{% if attrs.autocomplete %}autocomplete="{{ attrs.autocomplete }}"{% endif %}
value="{{ attrs.value|default_if_none:"" }}"
type="{{ attrs.type }}" />
<label class="form-check-label" for="gridRadios1">
<label class="form-check-label" for="{{ attrs.id }}">
{% slot label %}
{% endslot %}
</label>
@ -62,6 +62,5 @@
</div>
{% endif %}
{% if slots.help_text %}
<div class="form-text">{% slot help_text %}</div>
{% endslot %}
<div class="form-text">{% slot help_text %}{% endslot %}</div>
{% endif %}{% endraw %}