From c9d21f2b4dead49dc15713a5c625ccde45eaebc7 Mon Sep 17 00:00:00 2001 From: Lisa Durand Date: Wed, 5 Apr 2023 10:40:20 +0200 Subject: [PATCH] add dossier id in checkbox aria-label --- app/views/instructeurs/procedures/show.html.haml | 4 ++-- config/locales/en.yml | 4 ++-- config/locales/fr.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/instructeurs/procedures/show.html.haml b/app/views/instructeurs/procedures/show.html.haml index 4bb34f922..f715e9e22 100644 --- a/app/views/instructeurs/procedures/show.html.haml +++ b/app/views/instructeurs/procedures/show.html.haml @@ -133,9 +133,9 @@ %td.text-center - if batch_operation_component.render? - if p.batch_operation_id.present? - = check_box_tag :"batch_operation[dossier_ids][]", p.dossier_id, true, disabled: true, id: dom_id(BatchOperation.new, "checkbox_#{p.dossier_id}"), aria: { label: t('views.instructeurs.dossiers.batch_operation.disabled') } + = check_box_tag :"batch_operation[dossier_ids][]", p.dossier_id, true, disabled: true, id: dom_id(BatchOperation.new, "checkbox_#{p.dossier_id}"), aria: { label: t('views.instructeurs.dossiers.batch_operation.disabled', dossier_id: p.dossier_id) } - else - = check_box_tag :"batch_operation[dossier_ids][]", p.dossier_id, false, data: { batch_operation_target: "input", action: "batch-operation#onCheckOne", operations: batch_operation_component.operations_for_dossier(p).join(',') }, form: dom_id(BatchOperation.new), id: dom_id(BatchOperation.new, "checkbox_#{p.dossier_id}"), aria: { label: t('views.instructeurs.dossiers.batch_operation.enabled') } + = check_box_tag :"batch_operation[dossier_ids][]", p.dossier_id, false, data: { batch_operation_target: "input", action: "batch-operation#onCheckOne", operations: batch_operation_component.operations_for_dossier(p).join(',') }, form: dom_id(BatchOperation.new), id: dom_id(BatchOperation.new, "checkbox_#{p.dossier_id}"), aria: { label: t('views.instructeurs.dossiers.batch_operation.enabled', dossier_id: p.dossier_id) } - if @not_archived_notifications_dossier_ids.include?(p.dossier_id) %span.notifications{ 'aria-label': 'notifications' } diff --git a/config/locales/en.yml b/config/locales/en.yml index b985cc58e..8cbf003bb 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -369,8 +369,8 @@ en: title: Select a filter select_all: Select all batch_operation: - enabled: "Add this file to the selection for the bulk operation" - disabled: "Impossible to add this file to the selection because it is already in a bulk operation" + enabled: "Add file %{dossier_id} to the selection for the bulk operation" + disabled: "Impossible to add file %{dossier_id} to the selection because it is already in a bulk operation" personalize: Personalize the table show_deleted_dossiers: Show deleted files follow_file: Follow-up the file diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 9748146eb..00361b6f2 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -369,8 +369,8 @@ fr: title: Sélectionner un filtre select_all: Tout selectionner batch_operation: - enabled: "Ajouter ce dossier à la selection pour un traitement de masse" - disabled: "Impossible d'ajouter ce dossier à la selection car il est déjà dans un traitement de masse" + enabled: "Ajouter le dossier %{dossier_id} à la selection pour un traitement de masse" + disabled: "Impossible d'ajouter le dossier %{dossier_id} à la selection car il est déjà dans un traitement de masse" show_deleted_dossiers: Afficher les dossiers supprimés personalize: Personnaliser le tableau download: Télécharger un dossier