=semantic_form_for [:public, @particular], :remote => false do |form|

  .content
    =form.inputs do
    
      =hidden_field_tag :order, params[:order]
      =form.hidden_field :particular_type
      =form.hidden_field :force_validation, :class => "skip_validation"
      =form.hidden_field :pro
      -if false
        =form.input :price_in_bl, :label => "Afficher les prix dans le BL ?"
      .organisation_fields
        =form.input :organisation, :label => false, :placeholder => qit("don-particular-organisation","Organisation")

      %table
        %tr
          %td{:style => "width:20%;padding-right:4px;"}
            =form.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 => true
          %td{:style => "width:40%;padding-right:4px;"}
            =form.input :firstname, :label => false, :placeholder => qit("don-particular-firstname","Prénom")
          %td{:style => "width:40%"}
            =form.input :name, :label => false, :placeholder => qit("don-particular-name","Nom")
    
      =form.input :address_2, :label => false, :placeholder => qit("don-particular-adresse","Adresse")
      =form.input :address_3, :label => false, :placeholder => qit("don-particular-adresse-suite","Adresse suite")
      %table
        %tr
          %td{:style => "width:30%;padding-right:4px;"}
            =form.input :cp, :label => false, :placeholder => qit("don-particular-cp", "Code postal")
          %td{:style => "width:70%"}
            =form.input :city, :label => false, :placeholder => qit("don-particular-ville","Ville")

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

      -if false
        Contacts de l'adresse :


        .p_contacts_form
          =form.semantic_fields_for :p_contacts do |form|
            =render :partial => "public/p_contacts/form", :locals => {:form => form}

        %p= link_to_add_fields "Ajouter un contact à l'adresse", form, :p_contacts


      :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()
      


      %hr
      
      
  .actions=form.submit "sauvegarder", :class => "btn btn-primary"
  