metamaps--metamaps/app/views/users/edit.html.erb

21 lines
666 B
Text
Raw Normal View History

<%#
# @file
# /users/:id/edit
# User edit form
#%>
2014-08-12 15:09:53 +00:00
<% content_for :title, @user.name + "'s Settings | Metamaps" %>
<div id="yield">
2014-05-30 15:00:31 +00:00
<%= formula_form_for @user, url: user_url do |form| %>
<h3>Edit Account</h3>
<label for="user_image">Profile Picture</label>
<% if @user.image %><%= image_tag @user.image.url(:round), :size => "48x48" %><% end %>
<%= form.file_field :image %>
<%= 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 %>
<%= form.submit "Update", class: "update" %>
<% end %>
2014-08-12 15:09:53 +00:00
</div>