Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

missing fields partial

  • Loading branch information...
commit 2b33132cc30d347dff9ead71545c28ad096daf4f 1 parent 5038514
Dirk Siemers authored

Showing 1 changed file with 18 additions and 0 deletions. Show diff stats Hide diff stats

  1. 18  app/views/users/_fields.html.erb
18  app/views/users/_fields.html.erb
... ...
@@ -0,0 +1,18 @@
  1
+<%= render 'shared/error_messages' %>
  2
+
  3
+<%= f.label :name %>
  4
+<%= f.text_field :name %>
  5
+
  6
+<%= f.label :email %>
  7
+<%= f.text_field :email %>
  8
+
  9
+<%= f.label :password %>
  10
+<%= f.password_field :password %>
  11
+
  12
+<%= f.label :password_confirmation, "Confirm Password" %>
  13
+<%= f.password_field :password_confirmation %>
  14
+
  15
+<% if current_user.admin? && !current_user?(user) %>
  16
+  <%= f.label :admin %>
  17
+  <%= f.check_box :admin %>
  18
+<% end %>

0 notes on commit 2b33132

Please sign in to comment.
Something went wrong with that request. Please try again.