%- locals = {:f => f} %>
<%= hook :admin_user_form_fields, locals do %>
<%= f.field_container :email do %>
<%= f.label :email, t("email") %>
<%= f.text_field :email %>
<%= error_message_on :user, :email%>
<% end %>
<%= f.field_container :password do %>
<%= f.label :password, t("password") %>
<%= f.password_field :password %>
<%= f.error_message_on :password %>
<% end %>
<%= f.field_container :password do %>
<%= f.label :password_confirmation, t(:confirm_password) %>
<%= f.password_field :password_confirmation %>
<%= f.error_message_on :password_confirmation %>
<% end %>
<% end %>
<% if @user.respond_to?(:roles) %>
<%= hook :admin_user_form_roles, locals do %>
<% for role in @roles %>
<% end %>