%table.table_content
  -table_rows = @table_content.table_rows
  %tr
    
    


  -table_rows.each do |table_row|
    %tr
      %td.row_left
        .crl
          %a{:href => "#", :onclick => "$('.table_row_menu').hide();$('#table_row_menu_"+table_row.id.to_s+"').toggle();return false;"}+
        
        
        
        
          .table_row_menu#table_row_menu{:id => table_row.id}
            =link_to "ajouter un rang avant", portlet_table_rows_path(:table_row => {:table_content_id => @table_content.id, :position => (table_row.position)}), :method => :post
            %br
            =link_to "ajouter un rang après", portlet_table_rows_path(:table_row => {:table_content_id => @table_content.id, :position => (table_row.position+1)}), :method => :post
            %br
            =link_to "supprimer ce rang", [:portlet, table_row], :method => :delete, :confirm => "Voulez-vous vraiment supprimer ce rang ainsi que son contenu ?", :remote => true
          
      -table_row.cel_tables.each do |cel_table|

        %td.table_content_cel
          =auto_load_div(admin_block_path(cel_table.block),"Page_"+"@page.id.to_s"+"_blocks_part")

      %td.add_col
        %span +
      -@table_content.nbr_cols.times do 
        %td.add_col
          %span +f
