<%= 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 %>
|
<% end %>