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

	.content
		= f.error_messages 
		
		%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 :surname,"Nom :"
				%td= f.text_field :surname, :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{:style => "vertical-align:top;"} Roles :
				%td
					- for role in Admin::ROLES 
						= check_box_tag "admin[roles][]", role, @admin.roles.include?(role) 
						=h role.humanize 
						%br
					= hidden_field_tag "admin[roles][]", "" 

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