{% if form_show_errors and field.errors %}
    {% if field.errors.field_id %}
        {# Django 5.2+ #}
        <div id="{{field.errors.field_id}}_error" class="text-error text-sm mt-1">
    {% else %}
        <div id="{{field.auto_id}}_error" class="text-error text-sm mt-1">
    {% endif %}
    {% for error in field.errors %}
        <p id="error_{{ forloop.counter }}_{{ field.auto_id }}"><strong>{{ error }}</strong></p>
    {% endfor %}
    </div>
{% endif %}
