{% load allauth %} {% comment %} A single field allauth builds by hand, not from a form field: an email address to pick (radio), one shown read-only, or recovery codes (textarea). Drawn in core's choice row and outlined field, so it matches the fields drawn from forms; the line under the box takes Django's ids (_error, _helptext), which the control's aria-describedby points at, as Django writes them on a form field. {% endcomment %} {% if attrs.type == "radio" or attrs.type == "checkbox" %}
{% else %}
{% if attrs.type == "textarea" %} {% else %} {% endif %}
{% if attrs.errors %}
{% for error in attrs.errors %}{{ error }}{% endfor %}
{% elif slots.help_text %}
{% slot help_text %}{% endslot %}
{% endif %}
{% endif %}