<%= render 'account/shared/box', divider: true do |p| %>
<% p.content_for :title, t('.profile.header') %>
<% p.content_for :description, t('.profile.description') %>
<% p.content_for :body do %>
<%= render "account/users/form", user: @user %>
<% end %>
<% end %>
<% if two_factor_authentication_enabled? %>
<%= render partial: "devise/registrations/two_factor" %>
<% end %>
<%= render 'account/oauth/stripe_accounts/index', context: @user, stripe_accounts: @user.oauth_stripe_accounts if stripe_enabled? %>
<% # 🚅 super scaffolding will insert new oauth providers above this line. %>
<%= render 'account/shared/box', divider: true do |p| %>
<% p.content_for :title, t('.password.header') %>
<% p.content_for :body do %>
<% within_fields_namespace(:update_self) do %>
<%= form_for [:account, @user], html: {id: dom_id(@user, :password), class: 'form'} do |form| %>
<% with_field_settings form: form do %>
<%= render 'shared/fields/password_field', method: :current_password %>
<%= render 'shared/fields/password_field', method: :password %>
<%= render 'shared/fields/password_field', method: :password_confirmation %>
<% end %>
<%= form.submit t('.buttons.update_password'), class: "button" %>
<% end %>
<% end %>
<% end %>
<% end %>