<%= turbo_frame_tag 'update_profile_information_form' do %>

Profile Information

Update your account's profile information and email address.

<%= form_with model: @update_profile_information_form, url: profile_update_path, method: "patch", class: "mt-6 space-y-6" do %>
<%= render(InputLabelComponent.new({ for: "name", value: "Name" })) %> <%= render(TextInputComponent.new({ id: "name", class: "block mt-1 w-full", type: "text", name: "name", value: @update_profile_information_form.name, required: true, autofocus: true, autocomplete: "name" })) %> <%= render(InputErrorComponent.new({ class: "mt-2", message: @update_profile_information_form.error_messages[:name] })) %>
<%= render(InputLabelComponent.new({ for: "email", value: "Email" })) %> <%= render(TextInputComponent.new({ id: "email", class: "block mt-1 w-full", type: "email", name: "email", value: @update_profile_information_form.email, required: true, autocomplete: "username" })) %> <%= render(InputErrorComponent.new({ class: "mt-2", message: @update_profile_information_form.error_messages[:email] })) %> <% if User.include?(MustVerifyEmail) && !Current.auth.user.has_verified_email? %>

Your email address is unverified.

<% if flash[:status] == 'verification-link-sent' %>

A new verification link has been sent to your email address.

<% end %>
<% end %>
<%= render(PrimaryButtonComponent.new) do %> Save <% end %> <% if flash[:status] == "profile-updated" %>

Saved.

<% end %>
<% end %>
<% end %>