From d2812a4a542d2bee6eac7469702bd7b94951763e Mon Sep 17 00:00:00 2001 From: Mathieu Magnin Date: Tue, 3 Jul 2018 13:55:10 +0200 Subject: [PATCH] Add a confirm before changing dossier state in manager --- app/views/manager/dossiers/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/manager/dossiers/show.html.erb b/app/views/manager/dossiers/show.html.erb index 4213b3e0d..5ed7252aa 100644 --- a/app/views/manager/dossiers/show.html.erb +++ b/app/views/manager/dossiers/show.html.erb @@ -26,7 +26,7 @@ as well as a link to its edit page.
<% if dossier.termine? %> - <%= link_to 'repasser en instruction', change_state_to_instruction_manager_dossier_path(dossier), method: :post, class: 'button' %> + <%= link_to 'Repasser en instruction', change_state_to_instruction_manager_dossier_path(dossier), method: :post, class: 'button', data: { confirm: "Repasser en instruction ?" } %> <% end %>