<%= t(".title") %>
<%= t(".subtitle") %>
<%= styled_form_with model: @user do |form| %>
<%= form.hidden_field :redirect_to, value: @invitation ? "home" : "onboarding_preferences" %>
<%= form.hidden_field :onboarded_at, value: Time.current if @invitation %>
<%= render "settings/user_avatar_field", form: form, user: @user %>
<%= form.text_field :first_name, placeholder: t(".first_name_placeholder"), label: t(".first_name"), container_class: "bg-container md:w-1/2 w-full", required: true %>
<%= form.text_field :last_name, placeholder: t(".last_name_placeholder"), label: t(".last_name"), container_class: "bg-container md:w-1/2 w-full", required: true %>
<% unless @invitation %>
<%= form.fields_for :family do |family_form| %>
"
data-onboarding-household-name-placeholder-value="<%= t(".household_name_placeholder") %>"
data-onboarding-group-name-label-value="<%= t(".group_name") %>"
data-onboarding-group-name-placeholder-value="<%= t(".group_name_placeholder") %>"
>
<%= t(".moniker_prompt", product_name: product_name) %>
<%= family_form.text_field :name, placeholder: t(".household_name_placeholder"), label: t(".household_name"), data: { onboarding_target: "nameField" } %>
<%= family_form.select :country,
country_options,
{ label: t(".country") },
required: true %>
<% end %>
<% end %>
<%= form.submit t(".submit") %>
<% end %>