<% add_decidim_page_title(t(".invite_attendee")) %>

<%= t(".invite_attendee") %>

<%= decidim_form_for(@form, url: meeting_registrations_invites_path, method: :post, html: { class: "form form-defaults new_meeting_registration_invite" }) do |f| %> <% disable_form = !allowed_to?(:invite_attendee, :meeting, meeting:) %> <%= render partial: "form", object: f, locals: { disabled: disable_form } %> <% unless meeting.registrations_enabled? %>

<%= t(".registrations_disabled") %>

<% end %> <% end %>
<%= admin_filter_selector %>

<%= t(".invites") %>

<% @invites.each do |invite| %> <% presenter = Decidim::Meetings::InvitePresenter.new(invite) %> <% end %>
<%= t("models.invite.fields.name", scope: "decidim.meetings") %> <%= t("models.invite.fields.email", scope: "decidim.meetings") %> <%= t("models.invite.fields.sent_at", scope: "decidim.meetings") %> <%= t("models.invite.fields.status", scope: "decidim.meetings") %>
<%= invite.user.name %> <%= invite.user.email %> <% if invite.sent_at %> <%= l invite.sent_at, format: :long %> <% end %> <%= presenter.status %>
<%= decidim_paginate @invites %>