
=form_for( [:portlet, @table_content], :remote => true) do |f|
	=hidden_field_tag "block_id", params[:block_id]
	=hidden_field_tag "portlet_id", params[:portlet_id]
	=hidden_field_tag "position", params[:position]

	-if !@table_content.id
		%table
			%tr
				%td Nombre de lignes :
				%td=f.text_field :nbr_rows
			%tr
				%td Nombre de colonnes :
				%td=f.text_field :nbr_cols
	%br
	=f.submit "Sauvegarder"

