summaryrefslogtreecommitdiff
path: root/django/contrib/admin/templates
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-08-17 18:32:40 +0200
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-08-20 09:05:16 +0200
commitd9ae7f5b580a0e8475bbfe84a86e1bd0fd404663 (patch)
tree7feefea3403ad350095514d77739ee0d644b964f /django/contrib/admin/templates
parent231c0d85931b5afde3e3caec0e6bc5ca6132bb7a (diff)
Fixed #35686 -- Added table headers to app list tables for screen readers.
Diffstat (limited to 'django/contrib/admin/templates')
-rw-r--r--django/contrib/admin/templates/admin/app_list.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/django/contrib/admin/templates/admin/app_list.html b/django/contrib/admin/templates/admin/app_list.html
index 3b67b5feab..60d874b2b6 100644
--- a/django/contrib/admin/templates/admin/app_list.html
+++ b/django/contrib/admin/templates/admin/app_list.html
@@ -7,6 +7,13 @@
<caption>
<a href="{{ app.app_url }}" class="section" title="{% blocktranslate with name=app.name %}Models in the {{ name }} application{% endblocktranslate %}">{{ app.name }}</a>
</caption>
+ <thead class="visually-hidden">
+ <tr>
+ <th scope="col">{% translate 'Model name' %}</th>
+ <th scope="col">{% translate 'Add link' %}</th>
+ <th scope="col">{% translate 'Change or view list link' %}</th>
+ </tr>
+ </thead>
{% for model in app.models %}
{% with model_name=model.object_name|lower %}
<tr class="model-{{ model_name }}{% if model.admin_url in request.path|urlencode %} current-model{% endif %}">