<%= form_tag({controller: "/home", action: "index"}, method: "get", id: "pw_title_form") do -%> <% unless @titles.blank? || Pixways.get_pixtech_param_value(session[:pixtech],'pixtech_only')=='true' %>
<%= I18n.t('toggle_check_all')%>
<% @titles.each do |t| %> <%= check_box_tag( "titles[#{t.id}]", 1, @current_params[:titles][t.id.to_s])%> <%= label_tag("titles[#{t.id}]", t.name, class: "btn btn-default") %> <% end %>
<% end %> <% unless @pixtech_titles.blank? %>
<%= I18n.t('toggle_check_all')%>
<% @pixtech_titles.each do |t| %> <%= check_box_tag( "titles[#{t.id}]", 1, @current_params[:titles][t.id.to_s])%> <%= label_tag("titles[#{t.id}]", t.name, class: "btn btn-default") %> <% end %>
<% end %> <% end %>