{% load allauth %} {% comment %} renders help text and errors without ids, so the input cannot point at them (django-mvp#412). The textarea's `value` slot has no surrounding whitespace, which would be copied with the codes. `checked`/`disabled` pick the branch because `checked="False"` still ticks the box. {% endcomment %} {% if attrs.type == "textarea" %} {% if attrs.readonly %} {% slot label %} {% endslot %} {% slot value %}{% endslot %} {% else %} {% slot label %} {% endslot %} {% slot value %}{% endslot %} {% endif %} {% elif attrs.disabled %} {% slot label %} {% endslot %} {% if slots.help_text %} {% slot help_text %} {% endslot %} {% endif %} {% elif attrs.checked %} {% slot label %} {% endslot %} {% if slots.help_text %} {% slot help_text %} {% endslot %} {% endif %} {% else %} {% slot label %} {% endslot %} {% if slots.help_text %} {% slot help_text %} {% endslot %} {% endif %} {% endif %}