- | <%= organization.name %> |
- <%= organization.email %> |
- <%= organization.phone_number %> |
- <%= organization.responsible_name %> |
-
- <% if organization.verified? %>
-
- <%= t("admin.organizations.index.verified") %>
- <% elsif organization.rejected? %>
-
- <%= t("admin.organizations.index.rejected") %>
- <% else %>
-
- <%= t("admin.organizations.index.pending") %>
- <% end %>
- |
-
- <% if can? :verify, organization %>
- <%= link_to t("admin.organizations.index.verify"),
- verify_admin_organization_path(organization, request.query_parameters),
- method: :put, class: "button success small-5" %>
- <% end %>
+
+
+ | <%= t("admin.organizations.index.name") %> |
+ <%= t("admin.organizations.index.email") %> |
+ <%= t("admin.organizations.index.phone_number") %> |
+ <%= t("admin.organizations.index.responsible_name") %> |
+ <%= t("admin.organizations.index.status") %> |
+ <%= t("admin.shared.actions") %> |
+
+
+ <% @organizations.each do |organization| %>
+
+ | <%= organization.name %> |
+ <%= organization.email %> |
+ <%= organization.phone_number %> |
+ <%= organization.responsible_name %> |
+
+ <% if organization.verified? %>
+
+ <%= t("admin.organizations.index.verified") %>
+ <% elsif organization.rejected? %>
+
+ <%= t("admin.organizations.index.rejected") %>
+ <% else %>
+
+ <%= t("admin.organizations.index.pending") %>
+ <% end %>
+ |
+
+ <% if can? :verify, organization %>
+ <%= link_to t("admin.organizations.index.verify"),
+ verify_admin_organization_path(organization, request.query_parameters),
+ method: :put, class: "button success small-5" %>
+ <% end %>
- <% if can? :reject, organization %>
- <%= link_to t("admin.organizations.index.reject"),
- reject_admin_organization_path(organization, request.query_parameters),
- method: :put, class: "button hollow alert small-5" %>
- <% end %>
- |
-
- <% end %>
-
-
+ <% if can? :reject, organization %>
+ <%= link_to t("admin.organizations.index.reject"),
+ reject_admin_organization_path(organization, request.query_parameters),
+ method: :put, class: "button hollow alert small-5" %>
+ <% end %>
+ |
+
+ <% end %>
+