<%= t(".filter_by") %> :
<%= form_tag "", method: :get do %> <% end %>

<%= t "decidim.admin.titles.user_groups" %>

<% @user_groups.each do |user_group| %> <% end %>
<%= t("models.user_group.fields.name", scope: "decidim.admin") %> <%= t("models.user_group.fields.document_number", scope: "decidim.admin") %> <%= t("models.user_group.fields.phone", scope: "decidim.admin") %> <%= t("models.user_group.fields.users_count", scope: "decidim.admin") %> <%= t("models.user_group.fields.created_at", scope: "decidim.admin") %> <%= t("models.user_group.fields.state", scope: "decidim.admin") %> <%= t("models.user_group.fields.actions", scope: "decidim.admin") %>
<%= user_group.name %> <%= user_group.document_number %> <%= user_group.phone %> <%= user_group.users.size %> <%= l user_group.created_at, format: :short %> <% if user_group.verified? %> <%= t(".state.verified") %> <% end %> <% if user_group.rejected? %> <%= t(".state.rejected") %> <% end %> <% if user_group.pending?%> <%= t(".state.pending") %> <% end %> <% if can?(:verify, user_group) %> <% if !user_group.verified? %> <%= icon_link_to "circle-check", decidim_admin.verify_user_group_path(user_group), t("actions.verify", scope: "decidim.admin"), method: :put, class: "action-icon--verify" %> <% else %> <%= icon "circle-check", class: "action-icon action-icon--disabled" %> <% end %> <% end %> <% if can?(:reject, user_group) %> <% if !user_group.rejected? %> <%= icon_link_to "circle-x", decidim_admin.reject_user_group_path(user_group), t("actions.reject", scope: "decidim.admin"), method: :put, class: "action-icon--reject" %> <% else %> <%= icon "circle-x", class: "action-icon action-icon--disabled" %> <% end %> <% end %>
<%= paginate @user_groups, theme: "decidim" %>