app/views/sign_up/passwords/new.html.erb
<% self.title = t('titles.confirmations.show') %>
<%= render PageHeadingComponent.new.with_content(t('forms.confirmation.show_hdr')) %>
<p class="margin-top-2 margin-bottom-0" id="password-description">
<%= t('instructions.password.info.lead_html', min_length: Devise.password_length.first) %>
</p>
<%= simple_form_for(@password_form, url: sign_up_create_password_path) do |f| %>
<%= text_field_tag('username', @email_address.email, hidden: true, autocomplete: 'username') %>
<%= render PasswordConfirmationComponent.new(
form: f,
forbidden_passwords: @forbidden_passwords,
field_options: {
input_html: { aria: { describedby: 'password-description' } },
},
) %>
<%= hidden_field_tag :confirmation_token, @confirmation_token, id: 'confirmation_token' %>
<%= f.submit t('forms.buttons.continue'), class: 'display-block margin-y-5' %>
<% end %>
<%= render 'shared/password_accordion' %>
<%= render 'shared/cancel' %>