puchar/crispy_forms/templates/bootstrap4/layout/field_errors.html

6 lines
236 B
HTML
Raw Permalink Normal View History

2022-12-05 04:12:09 +01:00
{% if form_show_errors and field.errors %}
{% for error in field.errors %}
<span id="error_{{ forloop.counter }}_{{ field.auto_id }}" class="invalid-feedback"><strong>{{ error }}</strong></span>
{% endfor %}
{% endif %}