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

  
  %td
    =customer_rib.bank_name
  %td
    =customer_rib.bank_city

  
    
  %td
    =customer_rib.name
  

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

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