about summary refs log tree commit diff stats
path: root/app/views/users/passwords/edit.html.haml
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-07-02 15:00:52 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-07-02 15:00:52 -0400
commit7971d7ac77c83717afcceaa1f476d1eb9afd5918 (patch)
tree5253143e7725b3f870d2f7070cf7b767c80ae1e7 /app/views/users/passwords/edit.html.haml
parent1c606f4a6e99576614f5ce3c698f56e96d03e6a3 (diff)
downloadthoughts-7971d7ac77c83717afcceaa1f476d1eb9afd5918.tar.gz
thoughts-7971d7ac77c83717afcceaa1f476d1eb9afd5918.tar.bz2
thoughts-7971d7ac77c83717afcceaa1f476d1eb9afd5918.zip
Styled password reset form
Diffstat (limited to 'app/views/users/passwords/edit.html.haml')
-rw-r--r--app/views/users/passwords/edit.html.haml16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/views/users/passwords/edit.html.haml b/app/views/users/passwords/edit.html.haml new file mode 100644 index 0000000..3d2d9ee --- /dev/null +++ b/app/views/users/passwords/edit.html.haml
@@ -0,0 +1,16 @@
1%h2 Change your password
2= devise_error_messages!
3#principal
4 = form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
5 = f.hidden_field :reset_password_token
6 .field
7 = f.label :password, "New password"
8 - if @minimum_password_length
9 %em= "(#{@minimum_password_length} characters minimum)"
10 = f.password_field :password, autofocus: true, autocomplete: "off"
11 .field
12 = f.label :password_confirmation, "Confirm new password"
13 = f.password_field :password_confirmation, autocomplete: "off"
14 .submit-field
15 = f.submit "Change my password"
16.navigation= link_to "← Back to thoughts", root_url