basic_app/app/views/admin/p_customers/_apercu.html.haml
Nicolas Bally fd027c16c1 initial
2020-04-21 21:53:16 +02:00

30 lines
798 B
Plaintext

-mask_fin = mask_fin || false
.p_customer_apercu
-if particular.owner and particular.owner_type == "PCustomer"
%strong=link_to particular.owner.code, admin_p_customer_path(particular.owner_id)
-if particular.owner and particular.owner.p_customer_cat
="|"
%strong=particular.owner.p_customer_cat.name
%br
-if particular
-if particular.organisation?
=particular.organisation
%br
-if particular.firstname? or particular.name?
%strong
=particular.firstname
=particular.name
%br
=particular.cp
=particular.city
-if particular.owner and particular.owner_type == "PCustomer" and !mask_fin
=render :partial => "admin/p_customers/financier.html.haml", :locals => {:p_customer => particular.owner}