=form_for( [:portlet, @image_content], :remote => true) do |f|


	%table.form_table
		%tr
			%td
				-r = rand(1000000000000000000000000000)	
				-if f.object.image_file
					=image_tag f.object.image_file.file.large.medium.small.thumb.url, :id => "img_"+r.to_s
				-else
					=image_tag "", :id => "img_"+r.to_s


			%td

				=f.hidden_field :image_file_id, :class => "inputText", :id => "input_"+r.to_s
				=link_to "Modifier cette image", "#", :onclick => "select_image_from_manager('"+r.to_s+"');return false;"
				
			
		%tr
			%td
				Texte alternatif :
			%td=f.text_field :alt, :class => "inputText", :id => "name_"+r.to_s

		%tr
			%td Alignement :
			%td= f.select :alignement, ImageContent::ALIGNS

		%tr
			%td Style :
			%td= f.select :style, ImageContent::STYLES

		%tr
			%td L'image peut être agrandie ? :
			%td=f.check_box :expandable






	
			
	=f.submit 'Sauvegarder'
		
