Allow dossier deletion if instruction has not started
This commit is contained in:
parent
e588195001
commit
e05fb2d0ae
5 changed files with 40 additions and 29 deletions
|
@ -14,14 +14,4 @@ module DossierHelper
|
|||
"highlighted"
|
||||
end
|
||||
end
|
||||
|
||||
def delete_dossier_confirm(dossier)
|
||||
message = ["Vous vous apprêtez à supprimer votre dossier ainsi que les informations qu’il contient."]
|
||||
if dossier.en_construction_ou_instruction?
|
||||
message << "Nous vous rappelons que toute suppression entraine l’annulation de la démarche en cours."
|
||||
end
|
||||
message << "Confirmer la suppression ?"
|
||||
|
||||
message.join(" ")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue