diff --git a/app/controllers/public/customers_auths_controller.rb b/app/controllers/public/customers_auths_controller.rb index f767559..a1a0f7b 100755 --- a/app/controllers/public/customers_auths_controller.rb +++ b/app/controllers/public/customers_auths_controller.rb @@ -14,6 +14,9 @@ class Public::CustomersAuthsController < ApplicationController end @customer = Customer.new() + if params[:p] + @customer.reseaux_token = params[:p] + end if cookies[:mlm_token] and @parent = Customer.find_parrain(cookies[:mlm_token]) @customer.parent_code = @parent.mlm_token.upcase diff --git a/app/controllers/public/customers_controller.rb b/app/controllers/public/customers_controller.rb index 771e337..bf2a78a 100755 --- a/app/controllers/public/customers_controller.rb +++ b/app/controllers/public/customers_controller.rb @@ -25,13 +25,10 @@ class Public::CustomersController < ApplicationController @customer = Customer.new() - if cookies[:mlm_token] and @parent = Customer.find_parrain(cookies[:mlm_token]) - @customer.parent_code = @parent.mlm_token.upcase - - elsif params[:p] and @parent = Customer.find_parrain(params[:p]) - @customer.parent_code = @parent.mlm_token.upcase - + if params[:p] + @customer.reseaux_token = params[:p] end + end diff --git a/app/views/layouts/vouisstar.html.haml b/app/views/layouts/vouisstar.html.haml index 4f0a256..12d1cd5 100644 --- a/app/views/layouts/vouisstar.html.haml +++ b/app/views/layouts/vouisstar.html.haml @@ -52,18 +52,14 @@ .columns %h2 Entreprises – Commerçants - Profession Libéral – Collectivités + Profession Libérales – Collectivités Associations .inner - %p - Vous pouvez vous inscrire sur la plateforme Negos pour commander des packs - %strong Vouis'Star - pour les revendre dans votre commerce, ou les offrir à vos clients. - + %center - =link_to "Commander maintenant", "http://negos.pro", :target => "_blank", :style => "display:inline-block;margin:20px;padding:12px 20px;border:1px solid #f59c00;color:white;background:#f59c00;font-weight:bold;text-decoration:none;" + =link_to "Commander maintenant", "http://negos.pro/public/customers_auths/new?p=KJ6XC9", :target => "_blank", :style => "display:inline-block;margin:20px;padding:12px 20px;border:1px solid #f59c00;color:white;background:#f59c00;font-weight:bold;text-decoration:none;" =link_to image_tag( "/logo2.png", :style => "display:block;margin:20px auto;width:160px;"), "http://negos.pro", :target => "_blank" diff --git a/app/views/public/customers/_new_form.haml b/app/views/public/customers/_new_form.haml index f5521a9..51ba95e 100755 --- a/app/views/public/customers/_new_form.haml +++ b/app/views/public/customers/_new_form.haml @@ -1,11 +1,11 @@ .center{:style => "text-align:center"} #new_customer_form_container - %h1 Formulaire de demande d'adhésion + %h1 Formulaire d'inscription - - %p Adhérer à Négos, c'est adhérer à un concept permettant à chacun de perdre moins de temps dans son travail et de réaliser des économies conséquentes. - %p - Vous bénéficierez du conseil d'un expert dans votre domaine et vous pourrez profiter des actions de courtage de Négos. + -if false + %p Adhérer à Négos, c'est adhérer à un concept permettant à chacun de perdre moins de temps dans son travail et de réaliser des économies conséquentes. + %p + Vous bénéficierez du conseil d'un expert dans votre domaine et vous pourrez profiter des actions de courtage de Négos.