mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-03 04:25:21 +02:00
Family invites (#1397)
* 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
This commit is contained in:
parent
09b269273a
commit
793bd852a0
26 changed files with 502 additions and 45 deletions
20
app/views/invitations/new.html.erb
Normal file
20
app/views/invitations/new.html.erb
Normal file
|
@ -0,0 +1,20 @@
|
|||
<%= modal_form_wrapper title: t(".title"), subtitle: t(".subtitle") 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([
|
||||
[t(".role_member"), "member"],
|
||||
[t(".role_admin"), "admin"]
|
||||
]),
|
||||
{},
|
||||
{ label: t(".role_label") } %>
|
||||
|
||||
<div class="w-full">
|
||||
<%= form.submit t(".submit"), class: "bg-gray-900 text-white rounded-lg px-4 py-2 w-full" %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
Loading…
Add table
Add a link
Reference in a new issue