This commit is contained in:
Nicolas Bally 2015-11-17 23:15:42 +01:00
parent b510b77974
commit 0add8f5ca4
6 changed files with 69 additions and 59 deletions

View File

@ -48,6 +48,6 @@
.content= yield .content= yield
.bottom{:style => "background:rgba(32,110,149,1);padding:10px;text-align:center;font-size:0.9em;"} .bottom{:style => "padding:10px;font-size:0.9em;"}
=link_to image_tag("http://negos-pro.fr/logo.png", :style => "margin:20px auto;display:block;height:200px;"), "http://negos-pro.fr" =link_to image_tag("http://negos-pro.fr/logo_mail.png", :style => "margin:20px auto;display:block;height:200px;"), "http://negos-pro.fr"

View File

@ -46,6 +46,10 @@
#main #main
=yield =yield
%br
%br
%br
.clear .clear
=#render :partial => "public/shared/bottom" =#render :partial => "public/shared/bottom"

View File

@ -1,27 +1,26 @@
.center.padding.white
-@customer = @customer || current_customer -@customer = @customer || current_customer
-@customer.step2 = true -@customer.step2 = true
= semantic_form_for [:public, @customer] do |f| = semantic_form_for [:public, @customer] do |f|
%h2 Informations détaillées %h2 Informations détaillées
=f.inputs do =f.inputs do
=f.hidden_field :step2 =f.hidden_field :step2
=f.input :tva_number, :label => "Numéro de TVA intra. :" =f.input :tva_number, :label => "Numéro de TVA intra. :"
=f.input :siret, :label => "Numéro de siret :" =f.input :siret, :label => "Numéro de siret :"
=render :partial => "public/my_account/address", :locals => {:f => f} =render :partial => "public/my_account/address", :locals => {:f => f}
=#%h2 Préférences concernant les envois de mail =#%h2 Préférences concernant les envois de mail
=#f.inputs do =#f.inputs do
=#f.input :newsgroups, :label => "Les types d'informations qui m'intéressent :", :collection => Newsgroup.all, :as => :check_boxes =#f.input :newsgroups, :label => "Les types d'informations qui m'intéressent :", :collection => Newsgroup.all, :as => :check_boxes
=f.submit "Sauvegarder", :class => "btn btn-primary" =f.submit "Sauvegarder", :class => "btn btn-primary"
%br %br

View File

@ -1,34 +1,38 @@
.center.padding.white
-@customer = @customer || current_customer
-@customer.step3 = true
= semantic_form_for [:public, @customer] do |f|
-@customer = @customer || current_customer
-@customer.step3 = true
= semantic_form_for [:public, @customer] do |f|
%h2 Peut être avez-vous déjà des besoins ? %p
%p Votre inscription est terminée,noubliez pas dindiquer vos besoins actuels :
Vous pouvez indiquer ci-dessous 3 de vos besoins actuels, que ce soit en équipement ou en service : %h2{:style => "text-align:center;"}
=f.inputs do Votre contribution est indispensable, pour que
=f.hidden_field :step3 %br
.needs NEGOS puisse sadapter à vos besoins
=f.text_area :need_1 %p Il ne sagit en aucun cas dun engagement
=f.text_area :need_2
=f.text_area :need_3
:scss =f.inputs do
.needs{ =f.hidden_field :step3
textarea{ .needs
width:auto; =f.input :need_1, :label => "1er besoin : ",:as => :select, :collection => [ "Materiel professionnel", "Matériel informatique", "Achat de véhicules", "Energie"]
padding:2.5%; =f.input :need_2, :label => "2ième besoin : ",:as => :select, :collection => [ "Materiel professionnel", "Matériel informatique", "Achat de véhicules", "Energie"]
display:block; =f.input :need_3, :label => "3ième besoin : ", :placeholder => "Autre, précisez ",:rows => 5, :input_html => {:style => "height:100px;"}
width:95%;
border-radius:5px;
margin-bottom:1em;
}
%p Vous serez en collaboration avec un expert dans votre domaine qui vous conseillera et vous permettra de mettre en œuvre toutes les possibilités.
:scss
.needs{
textarea{
width:auto;
padding:2.5%;
display:block;
width:95%;
border-radius:5px;
margin-bottom:1em;
} }
}
=f.submit "Sauvegarder", :class => "btn btn-primary"
%br =f.submit "Sauvegarder", :class => "btn btn-primary"
%br

View File

@ -16,13 +16,16 @@
%h2 %h2
=current_customer.organisation =current_customer.organisation
-if !current_customer.address or current_customer.need_1 == nil -if !current_customer.address or current_customer.need_1 == nil
%p
Merci beaucoup pour votre inscription, encore quelques petites minutes et votre profil sera complet !
-if !current_customer.address -if !current_customer.address
%p
Merci pour votre inscription, dernière étape et votre profil sera complet.
=render :partial => "public/my_account/step2" =render :partial => "public/my_account/step2"
-elsif !current_customer.need_1 -elsif !current_customer.need_1
=render :partial => "public/my_account/step3" %center
=render :partial => "public/my_account/step3"
-else -else
%p %p
Merci ! Votre profil est complet, nous vous contacterons prochainement. Merci ! Votre profil est complet, nous vous contacterons prochainement.

BIN
public/logo_mail.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 493 KiB