negos_app/app/views/public/my_account/my_reseauxes.html.haml
Nicolas Bally 11ee7df123 suite
2019-06-05 09:35:56 +02:00

40 lines
1.1 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-@my_reseauxes = true
.padding.center.reseauxes_home_container
=link_to image_tag("/logo3.png", :class => "logo"), "/"
%p
%strong
Bonjour
=current_customer.firstname+","
%br
Choissisez le réseaux sur lequel vous souhaitez vous connecter :
.reseauxes_home
-if false
=link_to public_needs_path(:no_reseaux => true), :class => "reseauxes" do
.arrow
=ic :"angle-right"
Plateforme Négos
%span
Vous choisissez, nous négocions !
-current_customer.reseauxes.where(:parent_id => nil).uniq.each do |reseaux|
-if reseaux.default_part == 3
-reseaux_path = public_reseaux_products_path(:reseaux_id => reseaux.id)
-elsif reseaux.default_part == 2
-reseaux_path = public_reseaux_products_path(:type => 2, :reseaux_id => reseaux.id)
-else
-reseaux_path = public_needs_path(:type => 1, :reseaux_id => reseaux.id)
=link_to reseaux_path, :class => "reseauxes" do
.arrow
=ic :"angle-right"
=reseaux.name
%span
=reseaux.baseline