mirror of
https://github.com/we-promise/sure.git
synced 2026-04-08 06:44:52 +00:00
* Add family moniker selection and dynamic UI labels Introduce a Family moniker persisted in the database with allowed values Family/Group, add required onboarding selection for it, and thread moniker-aware copy through key user-facing views and locales. Also add helper methods and tests for onboarding form presence and family moniker behavior. * Small copy edits/change moniker question order * Conditional Group/Family onboarding flow fixes * Fix label * Grouping of fields * Profile Info page Group/Family changes * Only admins can change Group/Family moniker * Repetitive defaults * Moniker in Account model * Moniker in User model * Auth fix * Sure product is also a moniker --------- Signed-off-by: Juan José Mata <juanjo.mata@gmail.com>
26 lines
905 B
Plaintext
26 lines
905 B
Plaintext
<%= render DS::Dialog.new do |dialog| %>
|
|
<% dialog.with_header(title: t(".title"), subtitle: t(".subtitle", product_name: product_name, moniker: family_moniker_downcase)) %>
|
|
|
|
<% dialog.with_body do %>
|
|
<%= styled_form_with model: @invitation, class: "space-y-4", data: { turbo: false } do |form| %>
|
|
<%= form.email_field :email,
|
|
required: true,
|
|
placeholder: t(".email_placeholder"),
|
|
label: t(".email_label") %>
|
|
|
|
<%= form.select :role,
|
|
options_for_select([
|
|
(FeatureFlags.intro_ui? ? [t(".role_guest"), "guest"] : nil),
|
|
[t(".role_member"), "member"],
|
|
[t(".role_admin"), "admin"]
|
|
].compact),
|
|
{},
|
|
{ label: t(".role_label") } %>
|
|
|
|
<div class="w-full">
|
|
<%= form.submit t(".submit"), class: "bg-inverse fg-inverse rounded-lg px-4 py-2 w-full" %>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|