suite
This commit is contained in:
parent
d0edf2c394
commit
a4b16127d2
16
app/mailers/question_mailer.rb
Executable file
16
app/mailers/question_mailer.rb
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
class QuestionMailer < ActionMailer::Base
|
||||||
|
default from: "contact@basiclabs.fr"
|
||||||
|
|
||||||
|
# Subject can be set in your I18n file at config/locales/en.yml
|
||||||
|
# with the following lookup:
|
||||||
|
#
|
||||||
|
# en.question.deliver.subject
|
||||||
|
#
|
||||||
|
def send_contact(contact)
|
||||||
|
@contact = contact
|
||||||
|
|
||||||
|
mail to: "contact@basiclabs.fr",:reply_to => @contact.email.to_s, :subject => "[Contact site]"
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
end
|
@ -97,22 +97,6 @@
|
|||||||
|
|
||||||
=yield
|
=yield
|
||||||
|
|
||||||
#footer
|
|
||||||
.center
|
|
||||||
%h1
|
|
||||||
Réalisons ensemble
|
|
||||||
%strong votre projet
|
|
||||||
="!"
|
|
||||||
|
|
||||||
%h2
|
|
||||||
Posez votre question à un expert
|
|
||||||
|
|
||||||
%br
|
|
||||||
|
|
||||||
-@contact = @contact || Contact.new()
|
|
||||||
|
|
||||||
.animated-block.contact_form#form
|
|
||||||
=render :partial => "public/contacts/form"
|
|
||||||
|
|
||||||
.clear
|
.clear
|
||||||
|
|
||||||
|
@ -1,38 +1,37 @@
|
|||||||
|
|
||||||
- @contact = @contact || Contact.new
|
- @contact = @contact || Contact.new
|
||||||
=semantic_form_for [:public, @contact], :remote => true do |f|
|
.animated-block.contact_form#form
|
||||||
=f.inputs do
|
=semantic_form_for [:public, @contact], :remote => true do |f|
|
||||||
|
=f.inputs do
|
||||||
|
|
||||||
=f.hidden_field :raison_id
|
=f.hidden_field :raison_id
|
||||||
=f.hidden_field :survey_set_id
|
=f.hidden_field :survey_set_id
|
||||||
|
|
||||||
|
|
||||||
=f.input :name, :label => false, :placeholder => qit("contact nom","Nom*")
|
=f.input :name, :label => false, :placeholder => qit("contact nom","Nom*")
|
||||||
|
|
||||||
=f.input :email, :label => false , :placeholder =>"Email"
|
=f.input :email, :label => false , :placeholder =>"Email"
|
||||||
=f.input :phone, :label => false, :placeholder => qit("contact tel","Téléphone")
|
=f.input :phone, :label => false, :placeholder => qit("contact tel","Téléphone")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
=f.input :message, :label =>false , :placeholder => "Message"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%p{:style => "text-align:left;"}
|
||||||
|
En soumettant ce formulaire j'accepte que Basic me contacte
|
||||||
|
|
||||||
|
|
||||||
|
%center=f.submit "Envoyer", :class => "btn"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
=f.input :message, :label =>false , :placeholder => "Message"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%p{:style => "text-align:left;"}
|
|
||||||
Prenez connaissance de notre déclaration de protection des données
|
|
||||||
%br
|
%br
|
||||||
En soumettant ce formulaire j'accepte que Basic utilise mes données pour me communiquer des informations sur ses domaines d’activités
|
%br
|
||||||
|
|
||||||
|
|
||||||
=f.submit "Envoyer", :class => "btn"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%br
|
|
||||||
%br
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
%div{:style => "text-align:center;max-width:400px;margin:auto;margin-top:30px"}
|
|
||||||
%p
|
|
||||||
Merci beaucoup pour votre demande, je vous recontacterai dans les meilleurs délais.
|
|
||||||
%p Muriel Arnal
|
|
@ -1,26 +1,6 @@
|
|||||||
-if !@new_site
|
|
||||||
%div{:style => "text-align:center;"}
|
|
||||||
%h3 Merci pour votre message !
|
|
||||||
|
|
||||||
%p Nous mettons tout en œuvre pour vous répondre dans les meilleurs délais.
|
|
||||||
%p L’équipe de 3P
|
|
||||||
|
|
||||||
-else
|
|
||||||
.title
|
|
||||||
-if @contact.raison_id == 2 || @contact.raison_id == 4
|
|
||||||
=qit "contact-raison2-thank", "Merci pour votre message !"
|
|
||||||
-else
|
|
||||||
=qit "contact-raison3-thank", "Merci pour votre demande"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.inner{:style => "text-align:center;"}
|
%p Merci pour votre message, nous mettons tout en œuvre pour vous répondre dans les meilleurs délais.
|
||||||
-if @contact.raison_id == 3
|
%p L’équipe de Basic Labs
|
||||||
%p.intro
|
|
||||||
=qit "contact-raison3-thank-s", "Nous vous enverrons ces documents dans les meilleurs délais."
|
|
||||||
-else
|
|
||||||
%p.intro
|
|
||||||
=qit "contact-raison-thank-s", "Nous vous contacterons dans les meilleurs délais."
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -47,23 +47,6 @@
|
|||||||
=simple_format @contact.message
|
=simple_format @contact.message
|
||||||
%hr
|
%hr
|
||||||
|
|
||||||
.row
|
|
||||||
-@contact.document_orders.each do |document_order|
|
|
||||||
-data_file = document_order.data_file
|
|
||||||
-if data_file.image_file
|
|
||||||
|
|
||||||
.data_file#data_file{:id => data_file.token}
|
|
||||||
=image_tag "https://3p.quartz.xyz"+data_file.image_file.file.large.medium.small.thumb.url.to_s
|
|
||||||
|
|
||||||
=data_file.title
|
|
||||||
%br
|
|
||||||
Quantité :
|
|
||||||
=document_order.qte
|
|
||||||
%br
|
|
||||||
%br
|
|
||||||
.clear{:style => "clear:both;"}
|
|
||||||
|
|
||||||
|
|
||||||
:scss
|
:scss
|
||||||
.data_file{
|
.data_file{
|
||||||
img{
|
img{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user