app/views/admin/users/show.html.erb in noodall-devise-0.1.4 vs app/views/admin/users/show.html.erb in noodall-devise-0.1.5
- old
+ new
@@ -1,8 +1,8 @@
<h1><%= @user.new_record? ? 'New' : 'Editing' %> User</h1>
-<%= form_for([:admin, @user]) do |f| %>
+<%= form_for([:admin, @user], :html => { :multipart => true}) do |f| %>
<%= f.error_messages %>
<p>
<span class="tooltip" title="Enter the name of this user"> </span>
<%= f.label :name %><br/>
@@ -11,9 +11,21 @@
<p>
<span class="tooltip" title="Enter the email address the user will use to login"> </span>
<%= f.label :email %><br/>
<span class="input-wrap"><%= f.text_field :email %></span>
+ </p>
+
+ <p>
+ <span class="tooltip" title="Select an image to use as this user's icon"> </span>
+ <%= f.label :avatar %><br/>
+ <span class="input-wrap"><%= f.file_field :avatar %></span>
+ </p>
+
+ <p>
+ <span class="tooltip" title="Enter some text about this user"> </span>
+ <%= f.label :bio %><br/>
+ <span class="input-wrap"><%= f.text_area :bio %></span>
</p>
<p>
<span class="tooltip" title="Enter the a password for the user"> </span>
<%= f.label :password %><br/>