{% load form_helpers %}
{% with wt=field|field_type %} {% if wt == "CheckboxInput" or wt == "CheckboxSelectMultiple" %} {% elif wt == "Select" or wt == "NullBooleanSelect" or wt == "SelectMultiple" %} {{ field|add_class:"w-full px-3 py-2 rounded-lg border border-soft bg-white text-sm text-primary focus:outline-none focus:ring-2 focus:ring-blue-500/30 focus:border-blue-500 transition-colors" }} {% elif wt == "Textarea" %} {{ field|add_class:"w-full px-3 py-2 rounded-lg border border-soft bg-white text-sm text-primary focus:outline-none focus:ring-2 focus:ring-blue-500/30 focus:border-blue-500 transition-colors resize-y" }} {% else %} {{ field|add_class:"w-full px-3 py-2 rounded-lg border border-soft bg-white text-sm text-primary focus:outline-none focus:ring-2 focus:ring-blue-500/30 focus:border-blue-500 transition-colors" }} {% endif %} {% endwith %} {% if field.errors %}

{{ field.errors.0 }}

{% endif %} {% if field.help_text %}

{{ field.help_text }}

{% endif %}