add alert to validate action and improve translation for unique batch operation

This commit is contained in:
Lisa Durand 2023-07-05 10:07:12 +02:00
parent b2ba15a277
commit a694d65911
5 changed files with 36 additions and 34 deletions

View file

@ -2,74 +2,74 @@ en:
archiver: archiver:
finish: finish:
text_success: text_success:
one: 1/1 file has been archived one: "%{success_count}/1 file has been archived"
other: "%{success_count}/%{count} files have been archived" other: "%{success_count}/%{count} files have been archived"
in_progress: in_progress:
text_success: text_success:
one: 1/1 is being archived one: "1 is being archived"
other: "%{success_count}/%{count} files have been archived" other: "%{success_count}/%{count} files have been archived"
passer_en_instruction: passer_en_instruction:
finish: finish:
text_success: text_success:
one: 1/1 file has been changed to instructing one: "%{success_count}/1 file has been changed to instructing"
other: "%{success_count}/%{count} files have been changed to instructing" other: "%{success_count}/%{count} files have been changed to instructing"
in_progress: in_progress:
text_success: text_success:
one: 1/1 is being changed to instructing one: "1 is being changed to instructing"
other: "%{success_count}/%{count} files have been changed to instructing" other: "%{success_count}/%{count} files have been changed to instructing"
accepter: accepter:
finish: finish:
text_success: text_success:
one: 1/1 file has been accepted one: "%{success_count}/1 file has been accepted"
other: "%{success_count}/%{count} files have been accepted" other: "%{success_count}/%{count} files have been accepted"
in_progress: in_progress:
text_success: text_success:
one: 1/1 is being accepted one: "1 is being accepted"
other: "%{success_count}/%{count} files have been accepted" other: "%{success_count}/%{count} files have been accepted"
refuser: refuser:
finish: finish:
text_success: text_success:
one: 1/1 file has been refused one: "%{success_count}/1 file has been refused"
other: "%{success_count}/%{count} files have been refused" other: "%{success_count}/%{count} files have been refused"
in_progress: in_progress:
text_success: text_success:
one: 1/1 is being refused one: "1 is being refused"
other: "%{success_count}/%{count} files have been refused" other: "%{success_count}/%{count} files have been refused"
classer_sans_suite: classer_sans_suite:
finish: finish:
text_success: text_success:
one: 1/1 file has been closed without continuation one: "%{success_count}/1 file has been closed without continuation"
other: "%{success_count}/%{count} files have been closed without continuation" other: "%{success_count}/%{count} files have been closed without continuation"
in_progress: in_progress:
text_success: text_success:
one: 1/1 is being closed without continuation one: "1 is being closed without continuation"
other: "%{success_count}/%{count} files have been closed without continuation" other: "%{success_count}/%{count} files have been closed without continuation"
follow: follow:
finish: finish:
text_success: text_success:
one: 1/1 file has been followed one: "%{success_count}/1 file has been followed"
other: "%{success_count}/%{count} files have been followed" other: "%{success_count}/%{count} files have been followed"
in_progress: in_progress:
text_success: text_success:
one: 1/1 is being followed one: "1 is being followed"
other: "%{success_count}/%{count} files have been followed" other: "%{success_count}/%{count} files have been followed"
unfollow: unfollow:
finish: finish:
text_success: text_success:
one: 1/1 file has been unfollowed one: "%{success_count}/1 file has been unfollowed"
other: "%{success_count}/%{count} files have been unfollowed" other: "%{success_count}/%{count} files have been unfollowed"
in_progress: in_progress:
text_success: text_success:
one: 1/1 is being unfollowed one: "1 is being unfollowed"
other: "%{success_count}/%{count} files have been unfollowed" other: "%{success_count}/%{count} files have been unfollowed"
repasser_en_construction: repasser_en_construction:
finish: finish:
text_success: text_success:
one: 1/1 file has been changed to in progress one: "%{success_count}/1 file has been changed to in progress"
other: "%{success_count}/%{count} files have been changed to in progress" other: "%{success_count}/%{count} files have been changed to in progress"
in_progress: in_progress:
text_success: text_success:
one: 1/1 is being changed to in progress one: "1 is being changed to in progress"
other: "%{success_count}/%{count} files have been changed to in progress" other: "%{success_count}/%{count} files have been changed to in progress"
title: title:
finish: The bulk action is finished finish: The bulk action is finished

View file

@ -2,74 +2,74 @@ fr:
archiver: archiver:
finish: finish:
text_success: text_success:
one: 1 dossier a été archivé one: "%{success_count}/1 dossier a été archivé"
other: "%{success_count}/%{count} dossiers ont été archivés" other: "%{success_count}/%{count} dossiers ont été archivés"
in_progress: in_progress:
text_success: text_success:
one: 1 dossier sera archivé one: "1 dossier est en cours d'archivage"
other: "%{success_count}/%{count} dossiers ont été archivés" other: "%{success_count}/%{count} dossiers ont été archivés"
passer_en_instruction: passer_en_instruction:
finish: finish:
text_success: text_success:
one: 1 dossier a été passé en instruction one: "%{success_count}/1 dossier a été passé en instruction"
other: "%{success_count}/%{count} dossiers ont été passés en instruction" other: "%{success_count}/%{count} dossiers ont été passés en instruction"
in_progress: in_progress:
text_success: text_success:
one: 1 dossier sera passé en instruction one: "1 dossier est en cours d'instruction"
other: "%{success_count}/%{count} dossiers ont été passés en instruction" other: "%{success_count}/%{count} dossiers ont été passés en instruction"
accepter: accepter:
finish: finish:
text_success: text_success:
one: 1 dossier a été accepté one: "%{success_count}/1 dossier a été accepté"
other: "%{success_count}/%{count} dossiers ont été acceptés" other: "%{success_count}/%{count} dossiers ont été acceptés"
in_progress: in_progress:
text_success: text_success:
one: 1 dossier sera accepté one: "1 dossier est en cours d'acceptation"
other: "%{success_count}/%{count} dossiers ont été acceptés" other: "%{success_count}/%{count} dossiers ont été acceptés"
refuser: refuser:
finish: finish:
text_success: text_success:
one: 1 dossier a été refusé one: "%{success_count}/1 dossier a été refusé"
other: "%{success_count}/%{count} dossiers ont été refusés" other: "%{success_count}/%{count} dossiers ont été refusés"
in_progress: in_progress:
text_success: text_success:
one: 1 dossier sera refusé one: "1 dossier est en cours de refus"
other: "%{success_count}/%{count} dossiers ont été refusés" other: "%{success_count}/%{count} dossiers ont été refusés"
classer_sans_suite: classer_sans_suite:
finish: finish:
text_success: text_success:
one: 1 dossier a été classé sans suite one: "%{success_count}/1 dossier a été classé sans suite"
other: "%{success_count}/%{count} dossiers ont été classés sans suite" other: "%{success_count}/%{count} dossiers ont été classés sans suite"
in_progress: in_progress:
text_success: text_success:
one: 1 dossier sera classé sans suite one: "1 dossier est en cours de classement sans suite"
other: "%{success_count}/%{count} dossiers ont été classés sans suite" other: "%{success_count}/%{count} dossiers ont été classés sans suite"
follow: follow:
finish: finish:
text_success: text_success:
one: 1 dossier a été suivi one: "%{success_count}/1 dossier a été suivi"
other: "%{success_count}/%{count} dossiers ont été suivis" other: "%{success_count}/%{count} dossiers ont été suivis"
in_progress: in_progress:
text_success: text_success:
one: 1 dossier sera suivi one: "1 dossier est en cours d'être suivi"
other: "%{success_count}/%{count} dossiers ont été suivis" other: "%{success_count}/%{count} dossiers ont été suivis"
unfollow: unfollow:
finish: finish:
text_success: text_success:
one: 1 dossier n'est plus suivi one: "%{success_count}/1 dossier n'est plus suivi"
other: "%{success_count}/%{count} dossiers ne sont plus suivis" other: "%{success_count}/%{count} dossiers ne sont plus suivis"
in_progress: in_progress:
text_success: text_success:
one: 1 dossier ne sera plus suivi one: "1 dossier est en cours de ne plus être suivi"
other: "%{success_count}/%{count} dossiers ne sont plus suivis" other: "%{success_count}/%{count} dossiers ne sont plus suivis"
repasser_en_construction: repasser_en_construction:
finish: finish:
text_success: text_success:
one: 1 dossier a été repassé en construction one: "%{success_count}/1 dossier a été repassé en construction"
other: "%{success_count}/%{count} dossiers ont été repassés en construction" other: "%{success_count}/%{count} dossiers ont été repassés en construction"
in_progress: in_progress:
text_success: text_success:
one: 1 dossier sera repassé en construction one: "1 dossier est en cours d'être repassé en construction"
other: "%{success_count}/%{count} dossiers ont été repassés en construction" other: "%{success_count}/%{count} dossiers ont été repassés en construction"
title: title:
finish: Laction de masse est terminée finish: Laction de masse est terminée

View file

@ -13,3 +13,4 @@ fr:
unfollow: 'Unfollow seleted files' unfollow: 'Unfollow seleted files'
repasser_en_construction: 'Change selected files to in progress' repasser_en_construction: 'Change selected files to in progress'
other: Other batch operations other: Other batch operations
confirm: Do you confirm the batch operation for selected files ?

View file

@ -13,3 +13,4 @@ fr:
unfollow: 'Ne plus suivre les dossiers' unfollow: 'Ne plus suivre les dossiers'
repasser_en_construction: 'Repasser les dossiers en construction' repasser_en_construction: 'Repasser les dossiers en construction'
other: Autres actions multiples other: Autres actions multiples
confirm: Confirmez-vous le traitement multiple des dossiers sélectionnés ?

View file

@ -1,11 +1,11 @@
.batch-operation.fr-ml-auto.flex .batch-operation.fr-ml-auto.flex
- if available_operations[:options].count.between?(1,3) - if available_operations[:options].count.between?(1,3)
= form_for(BatchOperation.new, url: instructeur_batch_operations_path(procedure_id: procedure.id), method: :post, html: { class: 'form', id: dom_id(BatchOperation.new) }) do |form| = form_for(BatchOperation.new, url: instructeur_batch_operations_path(procedure_id: procedure.id), method: :post, html: { class: 'form', id: dom_id(BatchOperation.new) }, data: { turbo: true, turbo_confirm: t('.operations.confirm') }) do |form|
- available_operations[:options].each do |opt| - available_operations[:options].each do |opt|
= render Dossiers::BatchOperationInlineButtonsComponent.new(opt:, icons:, form:) = render Dossiers::BatchOperationInlineButtonsComponent.new(opt:, icons:, form:)
- else - else
= form_for(BatchOperation.new, url: instructeur_batch_operations_path(procedure_id: procedure.id), method: :post, html: { class: 'form flex', id: dom_id(BatchOperation.new) }) do |form| = form_for(BatchOperation.new, url: instructeur_batch_operations_path(procedure_id: procedure.id), method: :post, html: { class: 'form flex', id: dom_id(BatchOperation.new) }, data: { turbo: true, turbo_confirm: t('.operations.confirm') }) do |form|
- available_operations[:options][0,2].each do |opt| - available_operations[:options][0,2].each do |opt|
= render Dossiers::BatchOperationInlineButtonsComponent.new(opt:, icons:, form:) = render Dossiers::BatchOperationInlineButtonsComponent.new(opt:, icons:, form:)