From 75ab403611f28303994ff3fbcf6bf01335dc0379 Mon Sep 17 00:00:00 2001 From: kara Diaby Date: Tue, 6 Oct 2020 13:30:03 +0200 Subject: [PATCH] =?UTF-8?q?fixe=20le=20choix=20du=20service=20lorsque=20la?= =?UTF-8?q?=20d=C3=A9marche=20en=20a=20d=C3=A9j=C3=A0=20un=20d'affect?= =?UTF-8?q?=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/new_administrateur/procedures/show.html.haml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/new_administrateur/procedures/show.html.haml b/app/views/new_administrateur/procedures/show.html.haml index e951cea10..6167b9bfe 100644 --- a/app/views/new_administrateur/procedures/show.html.haml +++ b/app/views/new_administrateur/procedures/show.html.haml @@ -76,8 +76,10 @@ - else Choix du service administratif .card-admin-action - - if @procedure.service_id.blank? && current_administrateur.services.present? - = link_to 'Modifier', admin_services_path(procedure_id: @procedure.id), class: 'button' + - if @procedure.service.present? + = link_to 'Modifier', edit_admin_service_path(@procedure.service), class: 'button' + - elsif current_administrateur.services.present? + = link_to 'Choisir', admin_services_path(procedure_id: @procedure.id), class: 'button' - else = link_to 'Remplir', new_admin_service_path(procedure_id: @procedure.id), class: 'button'