<%= raw simple_filter(show_filters) %>
<%= raw simple_filter(["key", "text"], 'sort_by') %>
<%= form_tag(params, :method => :get) do %>
<%= hidden_field_tag(:filter, params[:filter]) %>
<%= hidden_field_tag(:sort_by, params[:sort_by]) %>
<%= select_tag(:from_locale, options_for_select(from_locales, @from_locale.to_sym)) %> to
<%= select_tag(:to_locale, options_for_select(to_locales, @to_locale.to_sym)) %>
<%= submit_tag "Display" %>
<%= select_tag(:key_type, options_for_select([["contains", 'contains'], ["starts with", 'starts_with']], params[:key_type])) %>
<%= text_field_tag(:key_pattern, params[:key_pattern], :size => 50, :id => "key_pattern_value", :class => "text-default") %>
<%= select_tag(:text_type, options_for_select(['contains', 'equals'], params[:text_type])) %>
<%= text_field_tag(:text_pattern, params[:text_pattern], :size => 50, :id => "text_pattern_value", :class => "text-default") %>
<%= select_tag(:translated_text_type, options_for_select(['contains', 'equals'], params[:translated_text_type])) %>
<%= text_field_tag(:translated_text_pattern, params[:translated_text_pattern], :size => 50, :id => "translated_text_pattern_value", :class => "text-default") %>
<%= submit_tag "Search" %>
<%= link_to "clear", params.merge({:text_pattern => nil, :translated_text_pattern => nil, :key_pattern => nil}) %>
<% end %>