mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
* Initial pass at household invites * Invitee setup * Clean up add member form * Lint and other tweaks * Security cleanup * Lint * i18n fixes * More i18n cleanup * Show pending invites * Don't use turbo on the form * Improved email design * Basic tests * Lint * Update onboardings_controller.rb * Registration + invite cleanup * Lint * Update brakeman.ignore * Update brakeman.ignore * Self host invite links * Test tweaks * Address missing param error
42 lines
1.7 KiB
Text
42 lines
1.7 KiB
Text
<div class="bg-gray-25 h-screen flex flex-col justify-between">
|
|
<%= render "onboardings/header" %>
|
|
|
|
<div class="grow max-w-lg w-full mx-auto bg-gray-25 flex flex-col justify-center">
|
|
<div>
|
|
<div class="space-y-1 mb-6">
|
|
<h1 class="text-2xl font-medium"><%= t(".title") %></h1>
|
|
<p class="text-gray-500 text-sm"><%= t(".subtitle") %></p>
|
|
</div>
|
|
|
|
<%= 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 %>
|
|
|
|
<div class="space-y-4 mb-4">
|
|
<p class="text-gray-500 text-xs"><%= t(".profile_image") %></p>
|
|
<%= render "settings/user_avatar_field", form: form, user: @user %>
|
|
</div>
|
|
|
|
<div class="flex justify-between items-center gap-4 mb-4">
|
|
<%= form.text_field :first_name, placeholder: t(".first_name"), label: t(".first_name"), container_class: "bg-white w-1/2", required: true %>
|
|
<%= form.text_field :last_name, placeholder: t(".last_name"), label: t(".last_name"), container_class: "bg-white w-1/2", required: true %>
|
|
</div>
|
|
<% unless @invitation %>
|
|
<div class="space-y-4 mb-4">
|
|
<%= form.fields_for :family do |family_form| %>
|
|
<%= family_form.text_field :name, placeholder: t(".household_name"), label: t(".household_name") %>
|
|
|
|
<%= family_form.select :country,
|
|
country_options,
|
|
{ label: t(".country") }, required: true %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= form.submit t(".submit") %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render "layouts/footer" %>
|
|
</div>
|