<%= form_tag :admin_users, :method => :get do %>
<%= text_field_tag :query %>
<%= hidden_field_tag :type, params[:type] %>
<% if params[:type] == 'tutors' or params[:type] == 'mentors' %>
<%= hidden_field_tag :searchable, params[:searchable] %>
<% end %>
<%= submit_tag :search, :class => :navy_blue_btn %>
<% end %>
<%= label_tag "filter_by:" %>
User Type
<%= check_box_tag :user_type, 'all', params[:type] == 'all' %>
<%= "All Users" %>
<%= check_box_tag :user_type, 'students', params[:type] == 'students' %>
<%= Student.model_name.human.pluralize %>
<%= check_box_tag :user_type, 'tutors', params[:type] == 'tutors' %>
<%= Tutor.model_name.human.pluralize %>
<%= check_box_tag :user_type, 'mentors', params[:type] == 'mentors' %>
<%= Mentor.model_name.human.pluralize %>
<% if params[:type] == 'tutors' or params[:type] == 'mentors' %>
Searchable
<%= check_box_tag :searchable, 'true', params[:searchable] == 'true' %>
Yes
<%= check_box_tag :searchable, 'false', params[:searchable] == 'false' %>
No
<% end %>