vidpush/app/views/accounts/edit.html.erb

19 lines
565 B
Plaintext
Raw Normal View History

2014-05-14 18:01:19 +00:00
<h2>Edit <%= @user.email %></h2>
2014-05-14 18:11:52 +00:00
<%= simple_form_for(@user, url: account_path(@user), html: { method: :put }) do |f| %>
2014-05-14 18:01:19 +00:00
<%= f.error_notification %>
<div class="form-inputs">
<%= f.input :email, required: true, autofocus: true %>
<%= f.input :password, autocomplete: "off", hint: "leave it blank if you don't want to change it", required: false %>
<%= f.input :password_confirmation, required: false %>
</div>
<div class="form-actions">
<%= f.button :submit, "Update" %>
</div>
<% end %>
<%= link_to "Back", :back %>