46 lines
1.0 KiB
Plaintext
Executable File
46 lines
1.0 KiB
Plaintext
Executable File
.formulairecontact
|
|
- @contact = @contact || Contact.new(:provenance_id => 5)
|
|
=semantic_form_for [:public, @contact], :remote => true do |f|
|
|
=f.inputs do
|
|
|
|
=f.hidden_field :provenance_id
|
|
|
|
|
|
%table
|
|
%tr
|
|
|
|
%td
|
|
|
|
=f.input :name, :label => false, :placeholder => qit("contact nom","Nom*")
|
|
|
|
%td{:style => "width:50%;vertical-align:top;padding-left:6px;"}
|
|
=f.input :firstname, :label => false, :placeholder => qit("contact prenom","Prénom*")
|
|
|
|
|
|
%tr
|
|
%td{:colspan => 2}
|
|
=f.input :corporate, :label => false, :placeholder => qit("contact organisation","Organisation*")
|
|
|
|
%tr
|
|
|
|
%td
|
|
=f.input :email, :label => false , :placeholder =>"Email"
|
|
%td
|
|
=f.input :phone, :label => false, :placeholder => qit("contact tel","Téléphone")
|
|
%tr
|
|
%td{:colspan => 2}
|
|
=f.input :message, :label =>false , :placeholder => "Message"
|
|
|
|
|
|
|
|
.submit
|
|
=f.submit "Envoyer", :class => "btn"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.clear
|
|
|