From 1fb403f3b8eafd883dda163e4e6c1de6e2c2e018 Mon Sep 17 00:00:00 2001 From: Nicolae Claudius Date: Sun, 19 Jan 2014 12:59:47 +0200 Subject: [PATCH] pass reset layout --- app/views/users/passwords/edit.html.erb | 39 ++++++++++++++++--------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/app/views/users/passwords/edit.html.erb b/app/views/users/passwords/edit.html.erb index c8a67ce..3c2f7a3 100644 --- a/app/views/users/passwords/edit.html.erb +++ b/app/views/users/passwords/edit.html.erb @@ -1,16 +1,29 @@ -<%= render :partial => "users/shared/links" %> +
-<%= simple_form_for(resource, - as: resource_name, - url: password_path(resource_name), - method: :put - ) do |f| %> - <%= f.hidden_field :reset_password_token %> - - <%= devise_error_messages! %> +
+
+ + <%= render 'users/shared/links' %> + +
+
+ +
+ <%= simple_form_for(resource, + as: resource_name, + url: password_path(resource_name), + method: :put + ) do |f| %> + <%= f.hidden_field :reset_password_token %> - <%= f.input :password, label: "New password" %> - <%= f.input :password_confirmation, label: "Confirm new password" %> + <%= devise_error_messages! %> - <%= f.submit "Change my password", class: 'btn btn-primary' %> -<% end %> + <%= f.input :password, label: "New password" %> + <%= f.input :password_confirmation, label: "Confirm new password" %> + + <%= f.submit "Change my password", class: 'btn btn-primary' %> + <% end %> +
+ +
+
\ No newline at end of file