% add_decidim_page_title(t("conference_user_roles.index.conference_admins_title", scope: "decidim.admin")) %>
<%= sort_link(query, :name,t("models.conference_user_role.fields.name", scope: "decidim.admin"), default_order: :desc) %> | <%= sort_link(query, :email, t("models.conference_user_role.fields.email", scope: "decidim.admin"), default_order: :desc) %> | <%= sort_link(query, :last_sign_in_at, t("models.user.fields.last_sign_in_at", scope: "decidim.admin"), default_order: :desc) %> | <%= sort_link(query, :invitation_accepted_at, t("models.user.fields.invitation_accepted_at", scope: "decidim.admin"), default_order: :desc) %> | <%= sort_link(query, :role, t("models.conference_user_role.fields.role", scope: "decidim.admin"), default_order: :desc) %> | |
---|---|---|---|---|---|
<%= role.user.name %> |
<%= role.user.email %> |
<% if role.user.invitation_sent_at %> <%= l role.user.invitation_sent_at, format: :short %> <% end %> | <% if role.user.invitation_accepted_at %> <%= l role.user.invitation_accepted_at, format: :short %> <% end %> |
<%= t("#{role.role}", scope: "decidim.admin.models.conference_user_role.roles") %> |
<% if allowed_to?(:invite, :conference_user_role, user_role: role) && role.user.invited_to_sign_up? %> <%= icon_link_to "refresh-line", resend_invitation_conference_user_role_path(current_conference, role), t("actions.resend_invitation", scope: "decidim.admin"), class: "resend-invitation", method: :post %> <% end %> <% if allowed_to? :update, :conference_user_role, user_role: role %> <%= icon_link_to "pencil-line", edit_conference_user_role_path(current_conference, role), t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %> <% end %> <% if allowed_to? :destroy, :conference_user_role, user_role: role %> <%= icon_link_to "delete-bin-line", conference_user_role_path(current_conference, role), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %> <% end %> |