Merge pull request #2193 from betagouv/confirm-before-state-modification

Add a confirm before changing dossier state in manager
This commit is contained in:
LeSim 2018-07-03 14:01:22 +02:00 committed by GitHub
commit e0264e1495
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ as well as a link to its edit page.
<div> <div>
<% if dossier.termine? %> <% 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 %> <% end %>
<div> <div>
</header> </header>