From c49f7e3533658206199c2a6c1e410b4205cfa4b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A9?= Date: Mon, 20 Sep 2021 19:13:59 +0200 Subject: [PATCH] bugfix --- app/views/admin/price_documents/show.html.haml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/admin/price_documents/show.html.haml b/app/views/admin/price_documents/show.html.haml index 132a98c..e7b30d4 100644 --- a/app/views/admin/price_documents/show.html.haml +++ b/app/views/admin/price_documents/show.html.haml @@ -390,7 +390,11 @@ -@price_documents.each do |price_document_consult| - %h4.ml-2= price_document_consult.p_fournisseur.name + - if price_document_consult.p_fournisseur + %h4.ml-2= price_document_consult.p_fournisseur.name + - else + %h4.ml-2=link_to ic('pencil') + " rapprocher le fournisseur", match_p_fournisseur_admin_price_document_path(price_document_consult), remote: true + = semantic_form_for [:admin, price_document_consult], :html => {:class => "qi_price_form"}, :remote => false do |form| = form.button "Valider modifications", type: :submit, class: "btn btn-primary m-2"