X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2f9291ba5764fe104264ae7e3b6a361e11212e8b..4b2d3973e82291398931d108e16eacf673e77c16:/app/views/users/reset_password.html.erb?ds=inline diff --git a/app/views/users/reset_password.html.erb b/app/views/users/reset_password.html.erb index 51983b94a..99f07cab6 100644 --- a/app/views/users/reset_password.html.erb +++ b/app/views/users/reset_password.html.erb @@ -1,20 +1,10 @@ <% content_for :heading do %> -

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

+

<%= 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 %>