<%= form_tag({controller: "/searchstat", action: "create"}, class: "panel panel-default", id: "pw_search_form" ) do -%>
<%= hidden_field_tag :customers_only_default, 1 %> <%= I18n.t('statistics.customer_only') %> <%= check_box_tag(:customers_only, 1, @current_params[:customers_only_default].blank? || @current_params[:customers_only]=='1') %> <%#= label_tag I18n.t('download_date') %> <%= I18n.t('from') %> <%= text_field_tag :reception_date_begin, @current_params[:reception_date_begin], maxlength: 10, size: 10, class: 'datepicker form-control input-xs' -%> <%= I18n.t('to') %> <%= text_field_tag :reception_date_end, @current_params[:reception_date_end], maxlength: 10, size: 10, class: 'datepicker form-control input-xs' -%> <%= I18n.t('statistics.download') %> <%= select_tag(:operation_label_id, options_for_select(@operation_labels_select, @current_params[:operation_label_id]), class: 'form-control input-xs') %> <%= label_tag I18n.t('entries_per_page') %> <%= select_tag(:per_page, options_for_select(LIST_ROWS_PER_PAGE, @current_params[:per_page]), class: 'form-control input-xs') %> <%= label_tag I18n.t('search_since') %> <%= select_tag(:search_since, options_for_select([ [I18n.t('10_minutes'), '10_minutes'], [I18n.t('1_hour'), '1_hour'], [I18n.t('1_day'), '1_day'], [I18n.t('1_week'), '1_week'], [I18n.t('1_month'), '1_month'], [I18n.t('3_month'), '3_month'], [I18n.t('1_year'), '1_year'], [I18n.t('all'), 'all'] ], @current_params[:search_since]), class: 'form-control input-xs') %> <%= label_tag I18n.t('sort') %> <%= select_tag(:sort, options_for_select(@sort_list, @current_params[:sort]), class: 'form-control input-xs') %> <% if current_user.is_superadmin? %> <%= label_tag I18n.t('server') %> <%= select_tag :server, options_from_collection_for_select(server_by_name, "id", "name", @current_params[:server]), prompt: I18n.t('all'), class: 'form-control input-xs' %> <% end %> <%= text_field_tag :key_words, @current_params[:key_words], maxlength: 500, size: 20, class: 'form-control input-xs' %> <%= submit_tag 'OK', class: 'btn btn-default btn-xs' %>
<% end -%>