%tr#import_csv_row{:id => import_csv.id}
  -tr = {}
  
  -tr[:file] = capture do
    %td
      =File.basename import_csv.file.path

  -tr[:nbr_headers] = capture do
    %td
      = import_csv.import_csv_headers.count

  -tr[:nbr_elements] = capture do
    %td
      = import_csv.import_csv_elements.count


  -tr[:actions] = capture do
    %td.actions
      = link_to i(:"trash-o"), [:admin, import_csv], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cet enregistrement ? ' } , :remote => true
      = link_to i(:pencil), edit_admin_import_csv_path(import_csv), :remote => true
      = link_to i(:eye), admin_import_csv_path(import_csv), :remote => true
      = link_to i(:refresh), charge_admin_import_csv_path(import_csv)
      = link_to i(:copy), new_admin_import_csv_path(:parent_id => import_csv.id)



  =render :partial => "qi/qi_ordered_table_object", :locals => {:tr => tr, :object => import_csv}
    
  
  
  