app/views/devise/confirmations/new.html.haml
- provide :title, 'Resend confirmation'
.row.center-content
.col-12.col-md-8
%h2 Resend confirmation instructions
= form_for(resource, as: resource_name, url: confirmation_path(resource_name),
html: { method: :post }, data: { turbo: false }) do |f|
= devise_error_messages!
.field.mb-3
= f.label :email, class: "form-label"
= f.email_field :email, autofocus: true, autocomplete: "email",
value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email),
class: "form-control"
.actions.mb-3
= f.submit "Resend confirmation instructions", class: 'btn btn-primary'
.mb-3= render "devise/shared/links"