2024-11-01 10:23:27 -05:00
|
|
|
<%= modal_form_wrapper title: t(".title"), subtitle: t(".subtitle") do %>
|
|
|
|
<%= styled_form_with model: @invitation, class: "space-y-4", data: { turbo: false } do |form| %>
|
2024-11-04 20:27:31 -05:00
|
|
|
<%= form.email_field :email,
|
2024-11-01 10:23:27 -05:00
|
|
|
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 %>
|
2024-11-04 20:27:31 -05:00
|
|
|
<% end %>
|