tabletop-companion/app/views/passwords/edit.html.erb

22 lines
709 B
Plaintext

<%= content_for :title, t(".change_password") %>
<h2><%= t(".change_password") %></h2>
<section class="inset">
<%= form_with model: @user, url: user_password_path(@user), method: :patch do |f| %>
<%= f.label :password_challenge, t(".current_password") %>
<%= f.password_field :password_challenge %>
<%= display_form_errors(@user, :password_challenge) %>
<%= f.label :password %>
<%= f.password_field :password %>
<%= display_form_errors(@user, :password) %>
<%= f.label :password_confirmation %>
<%= f.password_field :password_confirmation %>
<%= display_form_errors(@user, :password_confirmation) %>
<%= f.submit t(".update_password") %>
<% end %>
</section>