mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-12-06 04:41:41 +01:00
Merge branch 'srp_diplay-errors' into 'master'
SRP - Display form errors See merge request allianceauth/allianceauth!1770
This commit is contained in:
commit
24863eaf9e
11
allianceauth/templates/django_bootstrap5/field_errors.html
Normal file
11
allianceauth/templates/django_bootstrap5/field_errors.html
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{# Template override to display the errors of django Forms when using `boostrap_form` form the `django-bootstrap5` #}
|
||||||
|
{# library. #}
|
||||||
|
{# See: https://github.com/zostera/django-bootstrap5/pull/767 #}
|
||||||
|
|
||||||
|
{% if field_errors %}
|
||||||
|
<div id="{{ field.auto_id }}_error" class="invalid-feedback">
|
||||||
|
{% for text in field_errors %}
|
||||||
|
<div>{{ text }}</div>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
Loading…
x
Reference in New Issue
Block a user