diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb index d5f1d0d..8ee1857 100755 --- a/app/views/devise/registrations/edit.html.erb +++ b/app/views/devise/registrations/edit.html.erb @@ -3,18 +3,13 @@ <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %> <%= devise_error_messages! %> -
<%= f.label :email %>
+
<%= f.label :email %> <%= f.email_field :email %>
- <% if current_user.admin? %> -<%= f.label :is_admin %>
- <%= f.check_box :is_admin, {checked: resource.admin?} %>
<%= f.label :password %> (leave blank if you don't want to change it)
+
<%= f.label :password %> (leave blank if you don't want to change it)
<%= f.password_field :password %>
<%= f.label :password_confirmation %>
+
<%= f.label :password_confirmation %> <%= f.password_field :password_confirmation %>
<%= f.label :current_password %> (we need your current password to confirm your changes)