.padding.center#my_cart
  %h1 Coordonnées
  
  = semantic_form_for [:public,@product_order], :url => particulars_save_public_product_orders_path(), :html => { :method => :post, :onchange =>"cb_infos();"}do |f| 

    =f.semantic_fields_for :customer do |f|
  
      .row
        .columns.span_6{:style => "padding:10px;"}
      
          %h3= "Adresse de facturation"
          %p
            &nbsp;
          =f.semantic_fields_for :particular_bill do |f| 
            .particular_form=render :partial => "particular_form", :locals => {:f => f}


  



          -@particular_idem = @product_order.particular_idem
  
        
    
        .columns.span_6{:style => "padding:10px;"}
          %h3"Adresse de livraison"
          %p=f.input :particular_idem, :label => "Adresse de livraison identique à l'adresse de facturation ?", :input_html => {:onchange => "particular_idem()", :id => "particular_idem_checkbox"}, :as => :boolean

          #particular_send
      
            =f.semantic_fields_for :particular_send do |f| 
    
              .particular_form=render :partial => "particular_form", :locals => {:f => f}
    
    
    .clear
    %br
    
    .actions
      %center
        =f.submit "Passer commande", :class => "btn btn-primary order_button"
        =#f.submit qit("Choisir le mode de livraison - bouton", "Choisir le mode de livraison"), :class => "btn btn-primary order_button"

    %br
    %br

    :coffeescript
      @particular_idem = ->
        if $("#particular_idem_checkbox").is(':checked')
          $('#particular_send').hide()
          $('#particular_send .skip_validation').val(1)
        else
          $('#particular_send').show()
          $('#particular_send .skip_validation').val('')
    
    :javascript
      particular_idem();
