Files
sure/app/views/invitations/new.html.erb
2026-02-09 12:47:23 +00:00

26 lines
876 B
Plaintext

<%= render DS::Dialog.new do |dialog| %>
<% dialog.with_header(title: t(".title"), subtitle: t(".subtitle", product_name: product_name)) %>
<% 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([
(Flipper.enabled?(: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 %>