<%= _('Manage organizations') %>

<%= form_tag( { :action => 'manage_organizations_status' }, :method => 'get', :class => 'users-search' ) do %>
<%= text_field_tag 'q', @q, :title => _("Find profiles"), :style=>"width:85%" %> <%= submit_button(:search, _('Search')) %>
<%= @title %>
<%= _("Filter by: ") %>
<% @collection.each do |p| %> <% end %>
<%= _('Member') %> <%= _('Actions') %>
<%= link_to_profile p.short_name, p.identifier, :title => p.name %>
<% if p.visible %> <%= button_without_text :'deactivate-user', _('Deactivate'), {:controller => "profile_editor", :action => 'deactivate_profile', :profile => p.identifier, :id => p.id}, :confirm => _("Do you want to deactivate this profile ?") %> <% else %> <%= button_without_text :'activate-user', _('Activate'), {:controller => "profile_editor", :action => 'activate_profile', :profile => p.identifier, :id => p.id}, :confirm => _("Do you want to activate this profile ?") %> <% end %> <%= button_without_text :'delete', _('Remove'), {:controller => "profile_editor", :action => 'destroy_profile', :profile => p.identifier, :id => p.id, :return_to => "/admin/admin_panel/manage_organizations_status"}, :method => :post, :confirm => _("Do you want to deactivate this profile ?") %>
<% end %> <%= pagination_links @collection, {:param_name => 'npage', :page_links => true} %> <% button_bar do %> <%= button :back, _('Back'), :controller => 'admin_panel' %> <% end %>