openstreetmap-website/app/views/passwords/edit.html.erb
Andy Allan 4bca24a7be Resourceful routing for passwords
This also matches the routes used by devise
2023-12-06 18:41:00 +00:00

10 lines
451 B
Text

<% content_for :heading do %>
<h1><%= t ".heading", :user => current_user.display_name %></h1>
<% end %>
<%= bootstrap_form_for current_user, :url => { :action => "update" }, :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 %>