<h2><%= l(:label_query) %></h2>

<%= form_tag(crm_query_path(@query, :object_type => @object_type), :onsubmit => 'selectAllOptions("selected_columns");', :method => :put) do %>
  <%= render :partial => 'queries/form', :locals => {:query => @query} %>
  <%= submit_tag l(:button_save) %>
<% end %>
