mmsc_app/app/views/public/contacts/_inline_form.html.haml
Nicolas Bally a6aa1f6074 Initial
2020-05-25 11:40:11 +02:00

30 lines
917 B
Plaintext
Executable File
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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