From a977e098d5cb585d2505db2f2c551fe7196c3b04 Mon Sep 17 00:00:00 2001 From: Mathieu Magnin Date: Tue, 5 Mar 2019 14:52:12 +0100 Subject: [PATCH] =?UTF-8?q?[Fix=20#3495]=20add=20update=20identit=C3=A9=20?= =?UTF-8?q?button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/shared/dossiers/_demande.html.haml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/views/shared/dossiers/_demande.html.haml b/app/views/shared/dossiers/_demande.html.haml index 1a24c7511..8eef11616 100644 --- a/app/views/shared/dossiers/_demande.html.haml +++ b/app/views/shared/dossiers/_demande.html.haml @@ -17,6 +17,10 @@ - if dossier.individual.present? = render partial: "shared/dossiers/identite_individual", locals: { individual: dossier.individual } + - if profile == 'usager' && !dossier.read_only? + .flex.row-reverse + = link_to "Modifier l'identité", identite_dossier_path(dossier), class: 'button' + .tab-title Formulaire - champs = dossier.champs.includes(:type_de_champ) - if champs.any?