%tr#hipay_virement_row{:id => hipay_virement.id, :class => ("success" if hipay_virement.confirmed)}
  
  %td
    -if hipay_virement.confirmed 
      =check_box_tag "hipay_virement_ids[]", hipay_virement.id
      
  
  %td=l hipay_virement.created_at

  %td
    =link_to hipay_virement.annonce_account.pseudo_admin, [:admin, hipay_virement.annonce_account]
  %td
    =hipay_virement.hipay_email
  %td
    =number_to_currency hipay_virement.annonce_account.commissions.sum(:amount)
    
  %td
    =number_to_currency hipay_virement.amount_ht
  
  %td
    
    =number_to_currency hipay_virement.amount_ttc
      
  
  %td
    =number_to_currency hipay_virement.commission.amount
  %td
    =ic(:check) if hipay_virement.sended
  

  %td.actions
    = link_to i(:check), valid_admin_hipay_virement_path(hipay_virement), :data => {:confirm => "Voulez vous vraiment valider ce hipay_virement ?"}, :remote => true if !hipay_virement.confirmed
    = link_to i(:check), paid_admin_hipay_virement_path(hipay_virement), :data => {:confirm => "Voulez vous vraiment payer ce hipay_virement ?"} if hipay_virement.confirmed and !hipay_virement.sended
    = link_to i(:eye), admin_hipay_virement_path(hipay_virement)
    = link_to i(:pencil), edit_admin_hipay_virement_path(hipay_virement), :remote => true if current_admin.super_admin if !hipay_virement.confirmed
    
    
    
  