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
|
|
|
|
|
|
|
<% content_for :title, @user.name + "'s Settings | Metamaps" %>
|
2014-01-29 03:46:58 +00:00
|
|
|
<h1 class="index">Your Settings</h1>
|
2014-05-30 15:00:31 +00:00
|
|
|
<%= formula_form_for @user, url: user_url do |form| %>
|
2012-10-26 10:04:52 +00:00
|
|
|
<h3>Edit Account</h3>
|
2014-07-08 01:02:43 +00: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 10:04:52 +00:00
|
|
|
<%= form.input :name, label: "Name", class: "name" %>
|
|
|
|
<%= form.input :email, label: "Email", class: "email" %>
|
2014-06-10 17:13:21 +00:00
|
|
|
<%= form.input :password, label: "Password", class: "password", :autocomplete => :off %>
|
2014-05-21 00:07:22 +00:00
|
|
|
<%= form.submit "Update", class: "update" %>
|
2013-01-11 23:49:59 +00:00
|
|
|
<% end %>
|
2013-01-26 01:49:40 +00:00
|
|
|
|