diff options
| author | sanjeevholla26 <sanjeevholla26@gmail.com> | 2024-08-30 23:44:32 +0530 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-09-02 15:19:33 +0200 |
| commit | 387475c5b2f1aa32103dbe21cb281d3b35165a0c (patch) | |
| tree | c239d02a75de21531ef368e08e68ae05f68ac75a /django/contrib/admin/templates/registration/password_reset_form.html | |
| parent | e4a2e22ddbf1b892144b35dc21404c164bc848c6 (diff) | |
Refs #35706 -- Prefixed 'Error:' to titles of admin pages with form errors.
This improves the screen reader experience.
Diffstat (limited to 'django/contrib/admin/templates/registration/password_reset_form.html')
| -rw-r--r-- | django/contrib/admin/templates/registration/password_reset_form.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/contrib/admin/templates/registration/password_reset_form.html b/django/contrib/admin/templates/registration/password_reset_form.html index 0edfea8ec2..7200e0f8be 100644 --- a/django/contrib/admin/templates/registration/password_reset_form.html +++ b/django/contrib/admin/templates/registration/password_reset_form.html @@ -1,6 +1,7 @@ {% extends "admin/base_site.html" %} {% load i18n static %} +{% block title %}{% if form.email.errors %}{{ _('Error:') }} {% endif %}{{ block.super }}{% endblock %} {% block extrastyle %}{{ block.super }}<link rel="stylesheet" href="{% static "admin/css/forms.css" %}">{% endblock %} {% block breadcrumbs %} <div class="breadcrumbs"> |
