2013-01-11 23:49:59 +00:00
|
|
|
<%#
|
|
|
|
# @file
|
2013-01-26 01:49:40 +00:00
|
|
|
# /users/:id/edit
|
2013-01-11 23:49:59 +00:00
|
|
|
# User edit form
|
|
|
|
#%>
|
2013-07-09 16:32:13 +00:00
|
|
|
|
2014-08-12 15:09:53 +00:00
|
|
|
<% content_for :title, @user.name + "'s Settings | Metamaps" %>
|
|
|
|
<div id="yield">
|
2014-09-25 17:26:09 +00:00
|
|
|
<%= form_for @user, url: user_url, :html =>{ :class => "edit_user centerGreyForm"} do |form| %>
|
2012-10-26 10:04:52 +00:00
|
|
|
<h3>Edit Account</h3>
|
2014-09-25 16:25:46 +00:00
|
|
|
<% 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" %>
|
2014-09-25 17:26:09 +00:00
|
|
|
<%= form.email_field :email %></div>
|
2014-09-25 16:25:46 +00:00
|
|
|
<div><%= form.label :password, "Current Password:", :class => "firstFieldText" %>
|
2014-09-25 17:26:09 +00:00
|
|
|
<%= form.password_field :password, :autocomplete => :off%></div>
|
2014-09-25 16:25:46 +00:00
|
|
|
<div><%= form.label :password, "New Password:", :class => "firstFieldText" %>
|
2014-09-25 17:26:09 +00:00
|
|
|
<%= 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>
|
2014-05-21 00:07:22 +00:00
|
|
|
<%= form.submit "Update", class: "update" %>
|
2013-01-11 23:49:59 +00:00
|
|
|
<% end %>
|
2014-08-12 15:09:53 +00:00
|
|
|
</div>
|