=render :partial => "menu"
%p
  Je fais un don de
  =number_to_currency(@donator_transaction.transaction_items[0].amount).to_s+","
  il me reviendra à
  =number_to_currency (@donator_transaction.transaction_items[0].amount*0.34)
  après déduction fiscale.
  
  
%p
  66% de votre don est déductible de vos impôts dans la limite de 20% de vos revenus imposables.
  
  
= semantic_form_for [:public,@donator_transaction], :url => particulars_save_public_donator_transaction_path(@donator_transaction.id), :html => {:class => "form-horizontal", :method => :post }do |f| 


  =f.semantic_fields_for :particular_bill do |f| 
    =render :partial => "particular_form", :locals => {:f => f}


  



  -@particular_idem = f.object.particular_idem
  
  #particular_send{:style => ("display:none;" if @particular_idem)}
    =f.input :particular_idem, :label => "Adresse de livraison identique à l'adresse de facturation ?", :input_html => {:onchange => "particular_idem()", :id => "particular_idem_checkbox"}


    =f.semantic_fields_for :particular_send do |f| 
    
      =render :partial => "particular_form", :locals => {:f => f}
      
  .actions=f.submit "Suite", :class => "btn btn-primary"


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

  