OSDN Git Service

Reset button/link on the reset password page. Fixes #5418
authorPerry Faro <perryfaro@live.nl>
Sun, 27 Oct 2013 10:50:18 +0000 (11:50 +0100)
committerPerry Faro <perryfaro@live.nl>
Sun, 27 Oct 2013 10:50:18 +0000 (11:50 +0100)
app/views/devise/passwords/edit.html.haml

index d85b4ab..3e4a4a0 100644 (file)
@@ -7,5 +7,8 @@
   %div
     = f.password_field :password_confirmation, class: "text bottom", placeholder: "Confirm new password"
   %div
+  .clearfix.append-bottom-10
     = f.submit "Change my password", class: "btn btn-primary"
-    .pull-right= render partial: "devise/shared/links"
+    = link_to "Sign in", new_session_path(resource_name), class: "btn pull-right"
+  %div
+    = link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name)