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

<%= t(".invites") %> <%= link_to t(".invite_attendee"), conference.registrations_enabled ? new_conference_conference_invite_path(conference) : "#", class: "button button__sm button__secondary #{"disabled" unless conference.registrations_enabled && allowed_to?(:invite_attendee, :conference, conference:)}" %>

<%# NOTE: this old filters section should be refactorized in order to use the shared admin_filter_selector method it would require the definition of concerns similar to decidim-conferences/app/controllers/concerns/decidim/conferences/admin/filterable.rb %>
<% @conference_invites.each do |invite| %> <% presenter = Decidim::Conferences::ConferenceInvitePresenter.new(invite) %> <% end %>
<%= t("models.conference_invite.fields.name", scope: "decidim.conferences") %> <%= t("models.conference_invite.fields.email", scope: "decidim.conferences") %> <%= t("models.conference_invite.fields.sent_at", scope: "decidim.conferences") %> <%= t("models.conference_invite.fields.status", scope: "decidim.conferences") %> <%= t("models.conference_invite.fields.registration_type", scope: "decidim.conferences") %>
<%= invite.user.name %> <%= invite.user.email %> <% if invite.sent_at %> <%= l invite.sent_at, format: :long %> <% end %> <%= presenter.status %> <%= translated_attribute(invite.registration_type.title) %>
<%= decidim_paginate @conference_invites %>