30 lines
917 B
Plaintext
Executable File
30 lines
917 B
Plaintext
Executable File
- @contact = @contact || Contact.new
|
||
=semantic_form_for [:public, @contact], :remote => true do |f|
|
||
=f.inputs do
|
||
|
||
=f.hidden_field :raison_id
|
||
=hidden_field_tag "inline", "true"
|
||
|
||
.civilite
|
||
=f.input :civilite, :label =>false, :as => :radio, :collection => [["Madame ", "Mme"], ["Monsieur", "M"]], :include_blank => false
|
||
.clear
|
||
.row
|
||
.columns.span_6
|
||
=f.input :name, :label => false, :placeholder => qit("contact nom","Nom*")
|
||
.columns.span_6
|
||
=f.input :firstname, :label => false, :placeholder => qit("contact prenom","Prénom*")
|
||
.clear
|
||
.row
|
||
.columns.span_6
|
||
=f.input :phone, :label => false, :placeholder => qit("contact tel","Téléphone")
|
||
.columns.span_6
|
||
=f.input :email, :label => false , :placeholder =>"Email"
|
||
.clear
|
||
|
||
.submit
|
||
=f.submit "Contactez-moi", :class => "btn"
|
||
|
||
|
||
|
||
|
||
|