

=f.hidden_field :particular_type
=f.hidden_field :skip_validation, :class => "skip_validation"
=f.hidden_field :pro
.organisation_fields{:style => ("display:none" if !f.object.pro)}
  =f.input :organisation, :label => false, :placeholder => qit("don-particular-organisation","Organisation")

%table
  %tr
    %td{:style => "width:20%;padding-right:4px;"}
      =f.input :civilite, :label => false, :placeholder => qit("don-particular-civilite","Civilité"), :as => :select, :collection => [[qit("don-particular-civilite-mme","Mme."), "Mme"], [qit("don-particular-civilite-m","M."), "M"]], :include_blank => false
    %td{:style => "width:40%;padding-right:4px;"}
      =f.input :firstname, :label => false, :placeholder => qit("don-particular-firstname","Prénom")
    %td{:style => "width:40%"}
      =f.input :name, :label => false, :placeholder => qit("don-particular-name","Nom")
    
=f.input :address_2, :label => false, :placeholder => qit("don-particular-adresse","Adresse")
=f.input :address_3, :label => false, :placeholder => qit("don-particular-adresse-suite","Adresse suite")
%table
  %tr
    %td{:style => "width:30%;padding-right:4px;"}
      =f.input :cp, :label => false, :placeholder => qit("don-particular-cp", "Code postal")
    %td{:style => "width:70%"}
      =f.input :city, :label => false, :placeholder => qit("don-particular-ville","Ville")

=f.input :country, :label => false, :placeholder => qit("don-particular-pays","Pays"), :priority_countries => ["FR", "CH", "BE"], :include_blank => true, :locale => @lang.slug
=f.input :email, :label => false, :placeholder => qit("don-particular-email","Email")
=f.input :tel, :label => false, :placeholder => qit("don-particular-phone","Téléphone")

:coffeescript
  @organisation_check = (element) ->
    
    if element.is(':checked')
      element.closest('form').find('.organisation_fields').show()
      element.css('background', 'red')
    else
      element.closest('form').find('.organisation_fields').hide()
      
  