X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/0c79686f3cef86330d0ab6bbef2a9e2275ac93ac..651217e1bcae8f82790f92f182e4ae6f511ba4a0:/app/views/users/reset_password.html.erb diff --git a/app/views/users/reset_password.html.erb b/app/views/users/reset_password.html.erb index 6290cca96..99f07cab6 100644 --- a/app/views/users/reset_password.html.erb +++ b/app/views/users/reset_password.html.erb @@ -2,19 +2,9 @@

<%= t ".heading", :user => current_user.display_name %>

<% end %> -<%= error_messages_for current_user %> - -<%= form_tag do %> -<%= hidden_field_tag(:token, params[:token]) %> -
-
- - <%= password_field(:user, :pass_crypt, :value => "", :tabindex => 4) %> -
-
- - <%= password_field(:user, :pass_crypt_confirmation, :value => "", :tabindex => 5) %> -
- <%= submit_tag t(".reset"), :tabindex => 6 %> -
+<%= bootstrap_form_for current_user, :url => { :action => "reset_password" }, :html => { :method => :post } do |f| %> + <%= f.hidden_field :token, :name => "token", :value => params[:token] %> + <%= f.password_field :pass_crypt, :value => "" %> + <%= f.password_field :pass_crypt_confirmation, :value => "" %> + <%= f.primary t(".reset") %> <% end %>