about summary refs log tree commit diff stats
path: root/app/views/devise/passwords/edit.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/devise/passwords/edit.html.erb')
-rw-r--r--app/views/devise/passwords/edit.html.erb25
1 files changed, 25 insertions, 0 deletions
diff --git a/app/views/devise/passwords/edit.html.erb b/app/views/devise/passwords/edit.html.erb new file mode 100644 index 0000000..6a796b0 --- /dev/null +++ b/app/views/devise/passwords/edit.html.erb
@@ -0,0 +1,25 @@
1<h2>Change your password</h2>
2
3<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
4 <%= devise_error_messages! %>
5 <%= f.hidden_field :reset_password_token %>
6
7 <div class="field">
8 <%= f.label :password, "New password" %><br />
9 <% if @minimum_password_length %>
10 <em>(<%= @minimum_password_length %> characters minimum)</em><br />
11 <% end %>
12 <%= f.password_field :password, autofocus: true, autocomplete: "off" %>
13 </div>
14
15 <div class="field">
16 <%= f.label :password_confirmation, "Confirm new password" %><br />
17 <%= f.password_field :password_confirmation, autocomplete: "off" %>
18 </div>
19
20 <div class="actions">
21 <%= f.submit "Change my password" %>
22 </div>
23<% end %>
24
25<%= render "devise/shared/links" %>