%tr#stock_block_row{:id => stock_block.id}
  %td=l stock_block.enter_date if stock_block.enter_date
 
  %td= stock_block.admin.show_name if stock_block.admin
  
  %td= stock_block.stock_lines.count
  
  %td= stock_block.stock_lines.sum(:qte)
  
  %td.actions
    = link_to i(:"trash-o"), [:admin, stock_block], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cet enregistrement ? ' } , :remote => true
    = link_to i(:pencil), edit_admin_stock_block_path(stock_block), :remote => false
    = link_to i(:eye), admin_stock_block_path(stock_block), :remote => false

