This commit is contained in:
Nicolas Bally 2021-06-25 12:59:14 +02:00
parent 57f9e92274
commit c676a75d0e
3 changed files with 23 additions and 12 deletions

View File

@ -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

View File

@ -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
&nbsp;&nbsp;
=link_to image_tag("/logo-lux-large.png", :style => "width:200px;position:relative;top:0px;"), "http://luxlaverie.com/", :target => "_blank"
&nbsp;&nbsp;
=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

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB