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

<%= t(".registrations") %> <% if allowed_to? :export_conference_registrations, :conference, conference: conference %> <%= t "actions.export", scope: "decidim.admin" %> <%= icon "arrow-down-s-line", class: "dropdown-filter-icon" %> <% end %>

<% @conference_registrations.each do |registration| %> <% end %>
<%= t("models.conference_registration.fields.name", scope: "decidim.conferences") %> <%= t("models.conference_registration.fields.email", scope: "decidim.conferences") %> <%= t("models.conference_registration.fields.registration_type", scope: "decidim.conferences") %> <%= t("models.conference_registration.fields.state", scope: "decidim.conferences") %>
<%= registration.user.name %> <%= registration.user.email %> <%= translated_attribute(registration.registration_type.title) %> <%= t("models.conference_registration.fields.states.#{registration.confirmed? ? "confirmed" : "pending"}", scope: "decidim.conferences") %> <% if allowed_to?(:confirm, :conference_registration, conference_registration: registration) %> <% if !registration.confirmed? %> <%= icon_link_to "check-line", confirm_conference_conference_registration_path(current_conference, registration), t("actions.confirm", scope: "decidim.admin"), class: "action-icon--publish", method: :post %> <% end %> <% end %>
<%= decidim_paginate @conference_registrations %>