=semantic_form_for( [:portlet, @download_content], :remote => true) do |f|

	
	
	%table.form_table

		%tr
			%td Titre :
			%td=f.text_field :title
		
		%tr
			%td
				-r = rand(1000000000000000000000000000)	
				Fichier :
			%td
				#name{:id => r}
					=f.object.data_file.abstract_file_name if f.object.data_file
				=f.hidden_field :data_file_id, :id => "input_"+r.to_s

				=link_to "Modifier ce fichier", "#", :onclick => "select_file_from_manager('"+r.to_s+"');return false;"
				
		

		-if DownloadContent::STYLES.size >0
			%tr
				%td Style :
				%td= f.select :style, DownloadContent::STYLES



	
	= f.submit "Sauvegarder", :class => "btn btn-primary"
	
	





