add alert to validate action and improve translation for unique batch operation
This commit is contained in:
parent
b2ba15a277
commit
a694d65911
5 changed files with 36 additions and 34 deletions
|
@ -2,74 +2,74 @@ en:
|
|||
archiver:
|
||||
finish:
|
||||
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"
|
||||
in_progress:
|
||||
text_success:
|
||||
one: 1/1 is being archived
|
||||
one: "1 is being archived"
|
||||
other: "%{success_count}/%{count} files have been archived"
|
||||
passer_en_instruction:
|
||||
finish:
|
||||
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"
|
||||
in_progress:
|
||||
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"
|
||||
accepter:
|
||||
finish:
|
||||
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"
|
||||
in_progress:
|
||||
text_success:
|
||||
one: 1/1 is being accepted
|
||||
one: "1 is being accepted"
|
||||
other: "%{success_count}/%{count} files have been accepted"
|
||||
refuser:
|
||||
finish:
|
||||
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"
|
||||
in_progress:
|
||||
text_success:
|
||||
one: 1/1 is being refused
|
||||
one: "1 is being refused"
|
||||
other: "%{success_count}/%{count} files have been refused"
|
||||
classer_sans_suite:
|
||||
finish:
|
||||
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"
|
||||
in_progress:
|
||||
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"
|
||||
follow:
|
||||
finish:
|
||||
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"
|
||||
in_progress:
|
||||
text_success:
|
||||
one: 1/1 is being followed
|
||||
one: "1 is being followed"
|
||||
other: "%{success_count}/%{count} files have been followed"
|
||||
unfollow:
|
||||
finish:
|
||||
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"
|
||||
in_progress:
|
||||
text_success:
|
||||
one: 1/1 is being unfollowed
|
||||
one: "1 is being unfollowed"
|
||||
other: "%{success_count}/%{count} files have been unfollowed"
|
||||
repasser_en_construction:
|
||||
finish:
|
||||
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"
|
||||
in_progress:
|
||||
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"
|
||||
title:
|
||||
finish: The bulk action is finished
|
||||
|
|
|
@ -2,74 +2,74 @@ fr:
|
|||
archiver:
|
||||
finish:
|
||||
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"
|
||||
in_progress:
|
||||
text_success:
|
||||
one: 1 dossier sera archivé
|
||||
one: "1 dossier est en cours d'archivage"
|
||||
other: "%{success_count}/%{count} dossiers ont été archivés"
|
||||
passer_en_instruction:
|
||||
finish:
|
||||
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"
|
||||
in_progress:
|
||||
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"
|
||||
accepter:
|
||||
finish:
|
||||
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"
|
||||
in_progress:
|
||||
text_success:
|
||||
one: 1 dossier sera accepté
|
||||
one: "1 dossier est en cours d'acceptation"
|
||||
other: "%{success_count}/%{count} dossiers ont été acceptés"
|
||||
refuser:
|
||||
finish:
|
||||
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"
|
||||
in_progress:
|
||||
text_success:
|
||||
one: 1 dossier sera refusé
|
||||
one: "1 dossier est en cours de refus"
|
||||
other: "%{success_count}/%{count} dossiers ont été refusés"
|
||||
classer_sans_suite:
|
||||
finish:
|
||||
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"
|
||||
in_progress:
|
||||
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"
|
||||
follow:
|
||||
finish:
|
||||
text_success:
|
||||
one: 1 dossier a été suivi
|
||||
one: "%{success_count}/1 dossier a été suivi"
|
||||
other: "%{success_count}/%{count} dossiers ont été suivis"
|
||||
in_progress:
|
||||
text_success:
|
||||
one: 1 dossier sera suivi
|
||||
one: "1 dossier est en cours d'être suivi"
|
||||
other: "%{success_count}/%{count} dossiers ont été suivis"
|
||||
unfollow:
|
||||
finish:
|
||||
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"
|
||||
in_progress:
|
||||
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"
|
||||
repasser_en_construction:
|
||||
finish:
|
||||
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"
|
||||
in_progress:
|
||||
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"
|
||||
title:
|
||||
finish: L’action de masse est terminée
|
||||
|
|
|
@ -13,3 +13,4 @@ fr:
|
|||
unfollow: 'Unfollow seleted files'
|
||||
repasser_en_construction: 'Change selected files to in progress'
|
||||
other: Other batch operations
|
||||
confirm: Do you confirm the batch operation for selected files ?
|
||||
|
|
|
@ -13,3 +13,4 @@ fr:
|
|||
unfollow: 'Ne plus suivre les dossiers'
|
||||
repasser_en_construction: 'Repasser les dossiers en construction'
|
||||
other: Autres actions multiples
|
||||
confirm: Confirmez-vous le traitement multiple des dossiers sélectionnés ?
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
.batch-operation.fr-ml-auto.flex
|
||||
- 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|
|
||||
= render Dossiers::BatchOperationInlineButtonsComponent.new(opt:, icons:, form:)
|
||||
|
||||
- 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|
|
||||
= render Dossiers::BatchOperationInlineButtonsComponent.new(opt:, icons:, form:)
|
||||
|
||||
|
|
Loading…
Reference in a new issue