From c10bf81d24eae2fe26d9cefb504de12ea2235ea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sat, 18 Apr 2026 17:58:58 +0800 Subject: [PATCH] Add ARIA live regions and alerts for dynamic content announcements --- .../accounting/account/include/form.html | 6 +++--- .../accounting/currency/include/form.html | 4 ++-- .../include/account-selector-modal.html | 2 +- .../include/description-editor-modal.html | 20 +++++++++---------- .../journal-entry/include/form-currency.html | 4 ++-- .../include/form-debit-credit.html | 4 ++-- .../journal-entry/include/form-line-item.html | 2 +- .../journal-entry/include/form.html | 6 +++--- .../journal-entry-line-item-editor-modal.html | 8 ++++---- .../original-line-item-selector-modal.html | 2 +- .../templates/accounting/option/form.html | 4 ++-- .../option/include/form-recurring-item.html | 2 +- .../recurring-account-selector-modal.html | 2 +- .../include/recurring-item-editor-modal.html | 6 +++--- .../report/include/period-chooser.html | 6 +++--- 15 files changed, 39 insertions(+), 39 deletions(-) diff --git a/src/accounting/templates/accounting/account/include/form.html b/src/accounting/templates/accounting/account/include/form.html index eb6de4d..e6de812 100644 --- a/src/accounting/templates/accounting/account/include/form.html +++ b/src/accounting/templates/accounting/account/include/form.html @@ -54,13 +54,13 @@ First written: 2023/2/1 {% endif %} -
{% if form.base_code.errors %}{{ form.base_code.errors[0] }}{% endif %}
+
-
{% if form.title.errors %}{{ form.title.errors[0] }}{% endif %}
+
@@ -107,7 +107,7 @@ First written: 2023/2/1 {% endfor %} -

{{ A_("There is no data.") }}

+

{{ A_("There is no data.") }}

@@ -171,13 +171,13 @@ First written: 2023/2/28
-
+
-
+
diff --git a/src/accounting/templates/accounting/journal-entry/include/form-currency.html b/src/accounting/templates/accounting/journal-entry/include/form-currency.html index 12ae5d7..121a904 100644 --- a/src/accounting/templates/accounting/journal-entry/include/form-currency.html +++ b/src/accounting/templates/accounting/journal-entry/include/form-currency.html @@ -31,7 +31,7 @@ First written: 2023/3/21 {% endfor %} -
{% if currency_code_errors %}{{ currency_code_errors[0] }}{% endif %}
+
@@ -43,5 +43,5 @@ First written: 2023/3/21 {% block line_items %}{% endblock %}
-
{% if currency_errors %}{{ currency_errors[0] }}{% endif %}
+ diff --git a/src/accounting/templates/accounting/journal-entry/include/form-debit-credit.html b/src/accounting/templates/accounting/journal-entry/include/form-debit-credit.html index 11e8332..b60f6c8 100644 --- a/src/accounting/templates/accounting/journal-entry/include/form-debit-credit.html +++ b/src/accounting/templates/accounting/journal-entry/include/form-debit-credit.html @@ -36,7 +36,7 @@ First written: 2023/3/21
{{ A_("Total") }}
-
{{ debit_credit_total }}
+
{{ debit_credit_total }}
@@ -47,5 +47,5 @@ First written: 2023/3/21
-
{% if debit_credit_errors %}{{ debit_credit_errors[0] }}{% endif %}
+ diff --git a/src/accounting/templates/accounting/journal-entry/include/form-line-item.html b/src/accounting/templates/accounting/journal-entry/include/form-line-item.html index 4621fa0..fe1dc26 100644 --- a/src/accounting/templates/accounting/journal-entry/include/form-line-item.html +++ b/src/accounting/templates/accounting/journal-entry/include/form-line-item.html @@ -65,7 +65,7 @@ First written: 2023/2/25
{{ form.amount.data|accounting_format_amount }}
-
{% if form.all_errors %}{{ form.all_errors[0] }}{% endif %}
+
diff --git a/src/accounting/templates/accounting/journal-entry/include/form.html b/src/accounting/templates/accounting/journal-entry/include/form.html index 1b4422c..fca9244 100644 --- a/src/accounting/templates/accounting/journal-entry/include/form.html +++ b/src/accounting/templates/accounting/journal-entry/include/form.html @@ -50,7 +50,7 @@ First written: 2023/2/26
-
{% if form.date.errors %}{{ form.date.errors[0] }}{% endif %}
+
@@ -67,13 +67,13 @@ First written: 2023/2/26
-
{% if form.currencies_errors %}{{ form.currencies_errors[0] }}{% endif %}
+
-
{% if form.note.errors %}{{ form.note.errors[0] }}{% endif %}
+
diff --git a/src/accounting/templates/accounting/journal-entry/include/journal-entry-line-item-editor-modal.html b/src/accounting/templates/accounting/journal-entry/include/journal-entry-line-item-editor-modal.html index d64f366..069437c 100644 --- a/src/accounting/templates/accounting/journal-entry/include/journal-entry-line-item-editor-modal.html +++ b/src/accounting/templates/accounting/journal-entry/include/journal-entry-line-item-editor-modal.html @@ -35,7 +35,7 @@ First written: 2023/2/25 {{ A_("Original Line Item") }} -
+
@@ -50,7 +50,7 @@ First written: 2023/2/25 {{ A_("Description") }} -
+
@@ -58,13 +58,13 @@ First written: 2023/2/25 {{ A_("Account") }} -
+
-
+
diff --git a/src/accounting/templates/accounting/option/form.html b/src/accounting/templates/accounting/option/form.html index 1e4e650..45b078c 100644 --- a/src/accounting/templates/accounting/option/form.html +++ b/src/accounting/templates/accounting/option/form.html @@ -50,7 +50,7 @@ First written: 2023/3/22 {% endfor %} -
{% if form.default_currency_code.errors %}{{ form.default_currency_code.errors[0] }}{% endif %}
+
@@ -60,7 +60,7 @@ First written: 2023/3/22 {% endfor %} -
{% if form.default_ie_account_code.errors %}{{ form.default_ie_account_code.errors[0] }}{% endif %}
+
{% with expense_income = "expense", diff --git a/src/accounting/templates/accounting/option/include/form-recurring-item.html b/src/accounting/templates/accounting/option/include/form-recurring-item.html index b4c567c..47e0bcc 100644 --- a/src/accounting/templates/accounting/option/include/form-recurring-item.html +++ b/src/accounting/templates/accounting/option/include/form-recurring-item.html @@ -32,7 +32,7 @@ First written: 2023/3/22 {{ form.name.data|accounting_default }} {{ form.description_template.data|accounting_default }} -
{% if form.all_errors %}{{ form.all_errors[0] }}{% endif %}
+
diff --git a/src/accounting/templates/accounting/option/include/recurring-account-selector-modal.html b/src/accounting/templates/accounting/option/include/recurring-account-selector-modal.html index f6d5855..c5da0f7 100644 --- a/src/accounting/templates/accounting/option/include/recurring-account-selector-modal.html +++ b/src/accounting/templates/accounting/option/include/recurring-account-selector-modal.html @@ -42,7 +42,7 @@ First written: 2023/3/22 {% endfor %} -

{{ A_("There is no data.") }}

+

{{ A_("There is no data.") }}