diff --git a/netbox/templates/htmx/table.html b/netbox/templates/htmx/table.html index 16e35f868..3d6193697 100644 --- a/netbox/templates/htmx/table.html +++ b/netbox/templates/htmx/table.html @@ -22,6 +22,17 @@
{{ table.rows|length }}
{% endif %} + {# Announce the updated result count to assistive technology #} + {% if not table.embedded %} +
+ {% blocktrans trimmed count count=table.page.paginator.count %} + {{ count }} result found + {% plural %} + {{ count }} results found + {% endblocktrans %} +
+ {% endif %} + {# Include the updated "save" link for the table configuration #} {% if table.config_params and not table.embedded %} {% trans "Save" %} diff --git a/netbox/templates/inc/table_controls_htmx.html b/netbox/templates/inc/table_controls_htmx.html index 672598848..e995ea95a 100644 --- a/netbox/templates/inc/table_controls_htmx.html +++ b/netbox/templates/inc/table_controls_htmx.html @@ -1,6 +1,9 @@ {% load helpers %} {% load i18n %} +{# Live region used to announce updated results (e.g. after a quick search) to assistive technology #} +
+