%tr#annonce_account_rib_row{:id => annonce_account_rib.id, :class => ("success" if annonce_account_rib.validated)}
  %td=link_to annonce_account_rib.annonce_account.pseudo, [:admin, annonce_account_rib.annonce_account]
  

  
  %td
    =annonce_account_rib.bank_name
  %td
    =annonce_account_rib.bank_city

  
    
  %td
    =annonce_account_rib.name
  

    
  
  %td
  
    =annonce_account_rib.address
    %br
    -if annonce_account_rib.address2?
      =annonce_account_rib.address2
      %br
    =annonce_account_rib.cp
    =annonce_account_rib.city
  %td
    =annonce_account_rib.country
  
  %td
    =annonce_account_rib.iban
  %td
    =annonce_account_rib.bic
  %td
    =annonce_account_rib.tva_number
  
  %td
    =number_to_currency annonce_account_rib.annonce_account.commissions.sum(:amount)

  %td.actions
    = link_to i(:check), valid_admin_annonce_account_rib_path(annonce_account_rib, :inline => true), :data => {:confirm => "Voulez vous vraiment valider ce RIB ?"}, :remote => true if !annonce_account_rib.validated
    = link_to i(:eye), admin_annonce_account_rib_path(annonce_account_rib, :inline => true), :target => "_blank" if annonce_account_rib.scan_file?
    = link_to i(:pencil), edit_admin_annonce_account_rib_path(annonce_account_rib), :remote => true if current_admin.super_admin if !annonce_account_rib.validated
    
    
    
  