<%= link_to_function t('manage.model_filter.title'), "Manage.toggle_element('block_filter')", :class=>"dark-arr" %> <%= t('manage.model_filter.total_count') %>: <%= @users.total_count %> <%= cookie_content_tag(:div, :id=>"block_filter", :class=>"filt") do %> <%= form_for search_filter, :url => manage_users_path, :html =>{ :method => :get } do |f| %> <% controller.scopes_configuration.each do |key, value| %> <% next if [:with_role].include?(key) %> <%= f.label value[:as], t(value[:as], :scope => "activerecord.attributes.user") %> <%= f.text_field value[:as], :class => "text", :name => value[:as] %> <% end %> <%= f.label :role, t(:role, :scope => "activerecord.attributes.user") %> <%= f.collection_select :role, RoleType.all, :id, :title, {:include_blank => true}, {:name => "role"} %>
<%= content_tag(:button, :value => "search", :type => "submit", :name => "commit", :class => "gr cupid-green") do %> <%= t('manage.model_filter.search') %> <% end %> <%= link_to t('manage.model_filter.clear'), manage_users_path, :class=>"erase" %>
<% end %> <% end %>
<%= link_to_function t(search_filter.current_order, :scope => "manage.users.sort"), "SelectList.toggle(event)", :class=>"corn", :id=>'sort_select' %>
<%= link_to t('manage.users.export'), manage_users_path(:format => :csv) %>