Started inital migration to rails 3.2
This commit is contained in:
5
app/views/devise/registrations/edit.html.erb
Normal file → Executable file
5
app/views/devise/registrations/edit.html.erb
Normal file → Executable file
@@ -6,6 +6,11 @@
|
||||
<p><%= f.label :email %><br />
|
||||
<%= f.email_field :email %></p>
|
||||
|
||||
<% if current_user.admin? %>
|
||||
<p><%= f.label :is_admin %><br />
|
||||
<%= f.check_box :is_admin, {checked: resource.admin?} %></p>
|
||||
<% end %>
|
||||
|
||||
<p><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
|
||||
<%= f.password_field :password %></p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user