%= form_for(@user) do |f| %>
<%= render "common/error_messages", :target => @user %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :email %>
<%= f.text_field(:email, type: "email") %>
<%= f.label :user_name %>
<%= f.text_field :user_name %>
<%= f.label(:password, "New Password (or use old)") %>
<%= f.password_field :password %>
<%= f.label(:password_confirmation, "Confirm Password") %>
<%= f.password_field :password_confirmation %>
<% if current_user.can? :edit_permissions %>
<% end %>
<%= f.submit %>
<% end %>