From e5b5913d29c151d8bc5164d16188e99e7672d402 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Fri, 13 Apr 2018 17:35:49 +0200 Subject: [PATCH] [fix #1824] link preview button to preview page --- app/views/admin/procedures/new_from_existing.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/procedures/new_from_existing.html.haml b/app/views/admin/procedures/new_from_existing.html.haml index d8b6e1dab..a226fd66a 100644 --- a/app/views/admin/procedures/new_from_existing.html.haml +++ b/app/views/admin/procedures/new_from_existing.html.haml @@ -16,7 +16,7 @@ = procedure.libelle %td{ style: 'padding-right: 10px; padding-left: 10px; width: 60px;' } - if !procedure.archivee? - = link_to('Consulter', commencer_path(procedure_path: procedure.path), target: "_blank") + = link_to('Consulter', apercu_procedure_path(id: procedure.id), target: "_blank") %td = link_to('Cloner', admin_procedure_clone_path(procedure.id, from_new_from_existing: true), 'data-method' => :put, class: 'btn-sm btn-primary clone-btn') %td{ style: 'padding-left: 10px;' }