From 48e81e45249713d81558dac5e4c5782d74305dba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A9?= Date: Mon, 27 Sep 2021 19:14:39 +0200 Subject: [PATCH] WIP deploy breadcrumb on views --- app/views/admin/p_customers/edit.html.haml | 8 +------- app/views/admin/p_customers/show.html.haml | 3 +-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/app/views/admin/p_customers/edit.html.haml b/app/views/admin/p_customers/edit.html.haml index 0981487..22d6097 100644 --- a/app/views/admin/p_customers/edit.html.haml +++ b/app/views/admin/p_customers/edit.html.haml @@ -1,11 +1,5 @@ .qi_header - =breadcrumb("Modifier un client") - %h1 - Ventes - %span - =link_to "Clients", admin_p_customers_path - %span - Modifier un client + =breadcrumb(record: @p_customer.name) = render 'form' diff --git a/app/views/admin/p_customers/show.html.haml b/app/views/admin/p_customers/show.html.haml index 6eedb53..6a5e837 100644 --- a/app/views/admin/p_customers/show.html.haml +++ b/app/views/admin/p_customers/show.html.haml @@ -3,8 +3,7 @@ = link_to i(:pencil), edit_admin_p_customer_path(@p_customer), :remote => false - =breadcrumb("Détail client / #{@p_customer.code} - #{@p_customer.show_name}") - + =breadcrumb(record: "#{@p_customer.code} - #{@p_customer.show_name}")