2013-01-11 18:49:59 -05:00
|
|
|
<%#
|
|
|
|
# @file
|
2013-01-25 20:49:40 -05:00
|
|
|
# /users/:id/edit
|
2013-01-11 18:49:59 -05:00
|
|
|
# User edit form
|
|
|
|
#%>
|
2013-07-09 12:32:13 -04:00
|
|
|
|
2014-08-12 11:09:53 -04:00
|
|
|
<% content_for :title, @user.name + "'s Settings | Metamaps" %>
|
|
|
|
<div id="yield">
|
2014-05-30 11:00:31 -04:00
|
|
|
<%= formula_form_for @user, url: user_url do |form| %>
|
2012-10-26 06:04:52 -04:00
|
|
|
<h3>Edit Account</h3>
|
2014-07-07 21:02:43 -04:00
|
|
|
<label for="user_image">Profile Picture</label>
|
|
|
|
<% if @user.image %><%= image_tag @user.image.url(:round), :size => "48x48" %><% end %>
|
|
|
|
<%= form.file_field :image %>
|
2012-10-26 06:04:52 -04:00
|
|
|
<%= form.input :name, label: "Name", class: "name" %>
|
|
|
|
<%= form.input :email, label: "Email", class: "email" %>
|
2014-06-10 13:13:21 -04:00
|
|
|
<%= form.input :password, label: "Password", class: "password", :autocomplete => :off %>
|
2014-05-20 20:07:22 -04:00
|
|
|
<%= form.submit "Update", class: "update" %>
|
2013-01-11 18:49:59 -05:00
|
|
|
<% end %>
|
2014-08-12 11:09:53 -04:00
|
|
|
</div>
|
2013-01-25 20:49:40 -05:00
|
|
|
|