Merge pull request #9941 from colinux/warn-usager-transfer-email

ETQ usager je suis mieux prévenu lors de la suppression d'un dossier en attente de transfert
This commit is contained in:
Colin Darie 2024-01-29 10:48:50 +00:00 committed by GitHub
commit a2c43f7fcc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@
- if has_delete_action
- menu.with_item(class: 'danger') do
- confirm = dossier.transfer.present? ? t("views.users.dossiers.dossier_action.delete_dossier_with_transfer_confirm") : t("views.users.dossiers.dossier_action.delete_dossier_confirm")
- confirm = dossier.transfer.present? ? t("views.users.dossiers.dossier_action.delete_dossier_with_transfer_confirm", email: dossier.transfer.email) : t("views.users.dossiers.dossier_action.delete_dossier_confirm")
= link_to(dossier_path(dossier), role: 'menuitem', method: :delete, data: { disable: true, confirm: }) do
= dsfr_icon('fr-icon-delete-fill', :sm)
.dropdown-description

View file

@ -520,7 +520,7 @@ en:
clone: "Duplicate the file"
delete_dossier: "Delete the file"
delete_dossier_confirm: "If you continue, you will delete this file and the information it contains. Any deletion will result in the cancellation of the current procedure.\n\nConfirm deletion?"
delete_dossier_with_transfer_confirm: "If you continue, you will delete this file, the information it contains and its transfer request. Any deletion will result in the cancellation of the current procedure.\n\nConfirm deletion?"
delete_dossier_with_transfer_confirm: "If you continue, you will delete this file, the information it contains and its transfer request to %{email}. Any deletion will result in the cancellation of the current procedure.\n\nConfirm deletion?"
transfer_dossier: "Transfer the file"
edit_draft: "Keep filling"
actions: "Actions"

View file

@ -513,7 +513,7 @@ fr:
clone: "Dupliquer ce dossier"
delete_dossier: "Supprimer le dossier"
delete_dossier_confirm: "En continuant, vous allez supprimer ce dossier ainsi que les informations quil contient. Toute suppression entraîne lannulation de la démarche en cours.\n\nConfirmer la suppression ?"
delete_dossier_with_transfer_confirm: "En continuant, vous allez supprimer ce dossier, les informations quil contient ainsi que sa demande de transfert. Toute suppression entraîne lannulation de la démarche en cours.\n\nConfirmer la suppression ?"
delete_dossier_with_transfer_confirm: "En continuant, vous allez supprimer ce dossier, les informations quil contient ainsi que sa demande de transfert à %{email}. Toute suppression entraîne lannulation de la démarche en cours.\n\nConfirmer la suppression ?"
transfer_dossier: "Transférer le dossier"
edit_draft: "Continuer à remplir"
actions: "Actions"