= semantic_form_for [:admin,@donator_transaction], :html => {:class => "form-horizontal" }do |f| 
  =f.inputs do 
    =f.hidden_field :donator_id
    =f.input :recurrent, :label => "Paiement récurant ?"
    =#f.input :status, :label => "Déjà exporté sur EBP ?"
    
    
    
    =f.input :tr_occasion, :label => "Occasion", :collection => TrOccasion.all, :as => :select
    
    =f.semantic_fields_for :tr_payment do |f| 
      =render :partial => "admin/tr_payments/form", :locals => {:f => f}
    
    =f.semantic_fields_for :transaction_items do |f| 
      =render :partial => "admin/transaction_items/form", :locals => {:f => f}
    
    
    
    =f.input :particular_idem, :label => "Adresse de livraison identique à l'adresse de facturation ?", :input_html => {:onchange => "particular_idem()", :id => "particular_idem_checkbox"}
    :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('')
      
    
    -@particular_idem = f.object.particular_idem
    .row

      =f.semantic_fields_for :particular_bill do |f| 
        
        .col-md-6
          
         
          =render :partial => "admin/particulars/form", :locals => {:f => f}
      =f.semantic_fields_for :particular_send do |f| 
        
        .col-md-6
          
          #particular_send{:style => ("display:none;" if @particular_idem)}=render :partial => "admin/particulars/form", :locals => {:f => f}
          
  :javascript
    particular_idem();     
    
  =f.submit "Sauvegarder", :class => "btn btn-primary"