chore(dossier): warn user that deletion also means transfer cancellation
This commit is contained in:
parent
261932b56f
commit
27cfae8c6a
3 changed files with 6 additions and 2 deletions
|
@ -43,8 +43,8 @@
|
|||
|
||||
- if has_delete_action
|
||||
- menu.with_item(class: 'danger') do
|
||||
= link_to(dossier_path(dossier), role: 'menuitem', method: :delete, data: { disable: true, confirm: "En continuant, vous allez supprimer ce dossier ainsi que les informations qu’il contient. Toute suppression entraîne l’annulation de la démarche en cours.\n\nConfirmer la suppression ?" }) 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")
|
||||
= link_to(dossier_path(dossier), role: 'menuitem', method: :delete, data: { disable: true, confirm: }) do
|
||||
= dsfr_icon('fr-icon-delete-fill', :sm)
|
||||
.dropdown-description
|
||||
= t('views.users.dossiers.dossier_action.delete_dossier')
|
||||
|
|
|
@ -510,6 +510,8 @@ en:
|
|||
start_other_dossier: "Start another empty file"
|
||||
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?"
|
||||
transfer_dossier: "Transfer the file"
|
||||
edit_draft: "Keep filling"
|
||||
actions: "Actions"
|
||||
|
|
|
@ -503,6 +503,8 @@ fr:
|
|||
start_other_dossier: "Commencer un autre dossier vide"
|
||||
clone: "Dupliquer ce dossier"
|
||||
delete_dossier: "Supprimer le dossier"
|
||||
delete_dossier_confirm: "En continuant, vous allez supprimer ce dossier ainsi que les informations qu’il contient. Toute suppression entraîne l’annulation de la démarche en cours.\n\nConfirmer la suppression ?"
|
||||
delete_dossier_with_transfer_confirm: "En continuant, vous allez supprimer ce dossier, les informations qu’il contient ainsi que sa demande de transfert. Toute suppression entraîne l’annulation de la démarche en cours.\n\nConfirmer la suppression ?"
|
||||
transfer_dossier: "Transférer le dossier"
|
||||
edit_draft: "Continuer à remplir"
|
||||
actions: "Actions"
|
||||
|
|
Loading…
Reference in a new issue