a11y: add alert role to form error (#74051) #34
|
@ -1,6 +1,6 @@
|
|||
{% load i18n %}
|
||||
{% if form.errors %}
|
||||
<div class="errornotice" tabindex="-1" autofocus>
|
||||
<div class="errornotice" tabindex="-1" autofocus role="alert">
|
||||
<p>{% trans "There were errors processing your form." %}</p>
|
||||
{% for error in form.non_field_errors %}
|
||||
<p>{{ error }}</p>
|
||||
|
|
Loading…
Reference in New Issue