jipe_app/app/views/public/contacts/_form.html.haml
Nicolas Bally cc249e35de suite
2018-02-28 10:40:08 +01:00

93 lines
2.4 KiB
Plaintext
Executable File

- @contact = @contact || Contact.new
=semantic_form_for [:public, @contact], :remote => true do |f|
=f.inputs do
.row
.columns.span_8.result
%h2 Contactez-nous
%br
=f.hidden_field :raison_id
=f.hidden_field :survey_set_id
%table{:style => "border-collapse:collapse;width:100%;"}
%tr
%td{:style => "width:50%;vertical-align:top;padding-right:3px;"}
=f.input :name, :label => false, :placeholder => qit("contact nom","Nom*")
%td{:style => "width:50%;vertical-align:top;padding-left:3px;"}
=f.input :firstname, :label => false, :placeholder => qit("contact prenom","Prénom*")
-if @contact.raison_id != 1
=f.input :address, :label => false, :placeholder => qit("contact adresse","Adresse")
%table{:style => "border-collapse:collapse;width:100%;"}
%tr
%td{:style => "width:35%;vertical-align:top;"}=f.input :cp, :label => false, :placeholder => qit("contact cp","Code postal")
%td{:style => "width:65%;vertical-align:top;"}=f.input :city, :label =>false, :placeholder => qit("contact city","Ville")
=f.input :country, :label => false, :priority_countries => ["FR", "CH", "BE"]
=f.input :email, :label => false , :placeholder =>"Email"
=f.input :phone, :label => false, :placeholder => qit("contact tel","Téléphone")
=f.input :message, :label =>false , :placeholder => "Message"
.clear
=f.submit "Envoyer", :class => "btn"
%br
%br
.columns.span_4.button_container{:style => "padding-left:60px;"}
.inner
%h2 Jipé
%p
=ic(:"map-marker")
 
Zone Industrielle Le Pâquis
%br
    
55210 VIGNEULLES LES HATTONCHATEL
%br
    
France
%p
=ic(:phone)
+33 (0)3 88 85 05 40
%p
=ic(:"envelope-o")
=link_to "contact@jipe.fr", "mailto:contact@jipe.fr"
.clear