{% load widget_tweaks %} {% csrf_token %} {% if redirect_field_value %} {% endif %} {% include "account/_non_field_errors.html" %} {% for field in form.visible_fields %}
{{ field|add_label_class:"font-semibold text-xs" }} {% if field.errors %} {% render_field field class="flex items-center w-64 h-12 px-4 pb-3 mt-2 border-red-500 rounded focus:outline-none focus:ring-2" %} {% else %} {% render_field field class="flex items-center w-64 h-12 px-4 pb-3 mt-2 rounded focus:outline-none focus:ring-2" %} {% endif %} {% for error in field.errors %} {{ error }} {% endfor %}
{% endfor %}