%tr#stock_movement_row{:id => stock_movement.id}
  -tr = {}
  
  -tr[:stock_done] = capture do
    %td
      -if !stock_movement.stock_done
        =link_to "Générer les stocks", generate_stocks_admin_stock_movement_path(stock_movement), :class => "btn btn-primary" 
      -else
        Oui
  
  -tr[:actions] = capture do
    %td.actions
      -if !stock_movement.stock_done
        = link_to i(:"trash-o"), [:admin, stock_movement], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cet enregistrement ? ' } , :remote => true
        = link_to i(:pencil), edit_admin_stock_movement_path(stock_movement), :remote => true
      = link_to i(:eye), admin_stock_movement_path(stock_movement), :remote => false



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