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

	.content
	
		
		%table


			%tr
				%td.label= f.label :email,"Email :"
				%td= f.text_field :email, :class => "inputText" 
				
			%tr
				%td.label= f.label :username,"Login :"
				%td= f.text_field :username, :class => "inputText"
			%tr
				%td.label= f.label :name,"Nom :"
				%td= f.text_field :name, :class => "inputText"
				
			%tr
				%td.label= f.label :firstname,"Prénom :"
				%td= f.text_field :firstname, :class => "inputText"

			%tr
				%td.label= f.label :password, "Mot de passe :"
				%td= f.text_field :password, :class => "inputText" 

			%tr
				%td.label= f.label :password_confirmation, "Confirmation :"
				%td= f.text_field :password_confirmation, :class => "inputText" 
				
			%tr
				%td.label= f.label :file,"image :"
				%td
					= f.file_field :file
					=image_tag(f.object.file.square.url) if f.object.file

			
	.actions
		%button{:type => "submit"} Sauvegarder
		
 