From 74c89deb20478a1e5cda9e46f5057e72cbd60476 Mon Sep 17 00:00:00 2001 From: Andrew Gormley Date: Thu, 25 Jul 2024 22:12:19 +0100 Subject: [PATCH] fixed 16852: misc accessbility problems (#16977) * fixed 16852: misc accessbility problems * Restore tooltip text * Add translation support * Add missing i18n --------- Co-authored-by: Andrew Gormley Co-authored-by: Jeremy Stretch --- netbox/templates/base/layout.html | 12 ++++++------ netbox/templates/dcim/inc/rack_elevation.html | 2 +- netbox/templates/extras/dashboard/widget.html | 3 +++ netbox/templates/generic/bulk_import.html | 2 +- .../templates/helpers/table_config_form.html | 8 ++++---- 5 files changed, 15 insertions(+), 12 deletions(-) diff --git a/netbox/templates/base/layout.html b/netbox/templates/base/layout.html index cb6dc4dfc..c760c9163 100644 --- a/netbox/templates/base/layout.html +++ b/netbox/templates/base/layout.html @@ -147,39 +147,39 @@ Blocks: {% block footer_links %} {# Documentation #}
  • - +
  • {# REST API #}
  • - +
  • {# API docs #}
  • - +
  • {# GraphQL API #} {% if config.GRAPHQL_ENABLED %}
  • - +
  • {% endif %} {# GitHub #}
  • - +
  • {# NetDev Slack #}
  • - +
  • diff --git a/netbox/templates/dcim/inc/rack_elevation.html b/netbox/templates/dcim/inc/rack_elevation.html index 03a847e33..33037c1ff 100644 --- a/netbox/templates/dcim/inc/rack_elevation.html +++ b/netbox/templates/dcim/inc/rack_elevation.html @@ -1,6 +1,6 @@ {% load i18n %}
    - +
    diff --git a/netbox/templates/extras/dashboard/widget.html b/netbox/templates/extras/dashboard/widget.html index 51b40342e..7a2bf0f05 100644 --- a/netbox/templates/extras/dashboard/widget.html +++ b/netbox/templates/extras/dashboard/widget.html @@ -1,4 +1,5 @@ {% load dashboard %} +{% load i18n %}
    @@ -28,6 +30,7 @@ hx-target="#htmx-modal-content" data-bs-toggle="modal" data-bs-target="#htmx-modal" + aria-label="{% trans "Close widget" %} {{ widget.title }}" > diff --git a/netbox/templates/generic/bulk_import.html b/netbox/templates/generic/bulk_import.html index 8514bf900..3a652d3e9 100644 --- a/netbox/templates/generic/bulk_import.html +++ b/netbox/templates/generic/bulk_import.html @@ -145,7 +145,7 @@ Context: {{ field.label }} {% endif %} {% if field.STATIC_CHOICES %} - +