basic_app/app/views/public/contacts/_form.html.haml
Nicolas Bally b6d9723bae suite
2020-08-10 18:04:59 +02:00

40 lines
847 B
Plaintext
Executable File

- @contact = @contact || Contact.new
.animated-block.contact_form#form
=semantic_form_for [:public, @contact], :remote => true do |f|
=f.inputs do
=f.hidden_field :raison_id
=f.hidden_field :survey_set_id
=f.input :name, :label => false, :placeholder => qit("contact nom","Nom*")
=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", :input_html => {:style => "height:150px;"}
%p{:style => "text-align:left;font-size:0.9em;"}
En soumettant ce formulaire j'accepte que Basic me contacte
%center=f.submit "Envoyer", :class => "btn"
%br
%br