Suite
This commit is contained in:
parent
57f9e92274
commit
c676a75d0e
@ -12,20 +12,23 @@ class Public::ContactsController < ApplicationController
|
||||
@contact = Contact.new(params.require(:contact).permit(:website, :place, :tel, :name, :email, :message))
|
||||
|
||||
|
||||
if @contact.valid?
|
||||
|
||||
if @contact.save
|
||||
if valid_captcha?(params['g-recaptcha-response'])
|
||||
QuestionMailer.send_contact(@contact).deliver
|
||||
QuestionMailer.remerciement(@contact).deliver
|
||||
render :action => :create
|
||||
if valid_captcha?(params['g-recaptcha-response'])
|
||||
@contact.save
|
||||
#QuestionMailer.send_contact(@contact).deliver
|
||||
#QuestionMailer.remerciement(@contact).deliver
|
||||
render :action => :create
|
||||
|
||||
else
|
||||
render :action => :captcha
|
||||
end
|
||||
else
|
||||
render :action => :captcha
|
||||
end
|
||||
|
||||
render :action => :new
|
||||
end
|
||||
|
||||
else
|
||||
|
||||
render :action => :new
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
@ -83,11 +83,19 @@
|
||||
=link_to image_tag("/logo.png", :id => "logo"), "/" if !@accueil
|
||||
=image_tag "/logo-miele.png", :id => "logo-miele" if !@accueil
|
||||
|
||||
#lux_banner{:style => "color:white;line-height:60px;text-align:center;vertical-align:middle;background:#a8c555;padding-bottom:10px;"}
|
||||
Gold laverie, une marque
|
||||
|
||||
=link_to image_tag("/logo-lux-large.png", :style => "width:200px;position:relative;top:0px;"), "http://luxlaverie.com/", :target => "_blank"
|
||||
|
||||
=link_to "visitez notre site luxlaverie.com !", "http://luxlaverie.com/", :target => "_blank", :style => "color:white;text-decoration:none;"
|
||||
|
||||
#nav-container{:class => ("accueil" if @accueil)}
|
||||
#nav
|
||||
|
||||
=#render(:partial => "public/shared/first_menu")
|
||||
|
||||
|
||||
-if false
|
||||
.info
|
||||
%p
|
||||
|
BIN
public/logo-lux-large.png
Normal file
BIN
public/logo-lux-large.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
Loading…
x
Reference in New Issue
Block a user