metamaps--metamaps/app/views/users/edit.html.erb
2014-09-25 13:26:09 -04:00

24 lines
1 KiB
Plaintext

<%#
# @file
# /users/:id/edit
# User edit form
#%>
<% content_for :title, @user.name + "'s Settings | Metamaps" %>
<div id="yield">
<%= form_for @user, url: user_url, :html =>{ :class => "edit_user centerGreyForm"} do |form| %>
<h3>Edit Account</h3>
<% if @user.image %><%= image_tag @user.image.url(:round), :size => "120x120" %><% end %>
<div class="name"> <%= @user.name %> </div>
<div><%= form.label :email, "Email:", :class => "firstFieldText" %>
<%= form.email_field :email %></div>
<div><%= form.label :password, "Current Password:", :class => "firstFieldText" %>
<%= form.password_field :password, :autocomplete => :off%></div>
<div><%= form.label :password, "New Password:", :class => "firstFieldText" %>
<%= form.password_field :password, :autocomplete => :off%></div>
<div><%= form.label :password_confirmation, "Confirm New Password:", :class => "firstFieldText" %>
<%= form.password_field :password_confirmation, :autocomplete => :off%></div>
<%= form.submit "Update", class: "update" %>
<% end %>
</div>