summaryrefslogtreecommitdiff
path: root/app/views/passwords/edit.html.erb
blob: e9d6a463b17190f09d15b57146ea7afdfdd652d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<div class="row">
  <div class="col">
    <h1>Reset Password</h1>
    <%= form_for(@user, url: password_path(@user.reset_password_token), html: { method: :put }, class: "form-horizontal") do |f| %>
      <legend>Enter your new password</legend>
      <div class="form-group">
        <%= f.label :password, "New password" %>
        <%= f.password_field :password, class: "form-control" %>
      </div>
      <%= f.hidden_field :reset_password_token %>
      <%= f.submit "Change my password", class: 'btn btn-primary' %>
    <% end %>
  </div>
</div>