<%= t(".title") %> <% if allowed_to? :create, :space_private_user %> <%= link_to t(".import_via_csv"), new_participatory_space_private_users_csv_import_path, class: "button tiny button--title import" %> <%= link_to t("actions.participatory_space_private_user.new", scope: "decidim.admin"), url_for(action: :new), class: "button tiny button--title new" %> <% end %>

<%= admin_filter_selector(:participatory_space_private_users) %>
<% if participatory_space_private_users.any? %>
<% participatory_space_private_users.each do |private_user| %> <% end %>
<%= t("models.assembly_user_role.fields.name", scope: "decidim.admin") %> <%= t("models.assembly_user_role.fields.email", scope: "decidim.admin") %> <%= t("models.user.fields.invitation_sent_at", scope: "decidim.admin") %> <%= t("models.user.fields.invitation_accepted_at", scope: "decidim.admin") %>
<%= private_user.user.name %>
<%= private_user.user.email %>
<% if private_user.user.invitation_sent_at %> <%= l private_user.user.invitation_sent_at, format: :short %> <% end %> <% if private_user.user.invitation_accepted_at %> <%= l private_user.user.invitation_accepted_at, format: :short %> <% end %> <% if allowed_to?(:invite, :space_private_user, private_user: private_user) && private_user.user.invited_to_sign_up? %> <%= icon_link_to "reload", resend_invitation_participatory_space_private_user_path(current_participatory_space, private_user), t("actions.resend_invitation", scope: "decidim.admin"), class: "resend-invitation", method: :post %> <% end %> <% if allowed_to? :destroy, :space_private_user, private_user: private_user %> <%= icon_link_to "circle-x", participatory_space_private_user_path(current_participatory_space, private_user), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %> <% end %>
<%= decidim_paginate participatory_space_private_users %> <% end %>