.portfolio
	%h1=@portfolio.title
	=markdown @portfolio.markdown_content

	.portfolio_images

	
		
	
		%form.fileupload{:action => admin_portfolio_images_path(:portfolio_id => @portfolio.id), :enctype => "multipart/form-data", :method => "POST"}
	
			.upload
				.progress
					.bar{:style => "height:1em;"}
					
				%button.add_files ajouter des photos
	
				%input{:multiple => "", :name => "portfolio_image[photo]", :type => "file", :style => "float:right;"}
			
			
				%br
			
				%br
				= hidden_field_tag "portfolio_image[portfolio_ids][]", @portfolio.id
			
				

		:javascript
			init_portfolio_images();

	%br
	.images=render @portfolio.images
