%= error_messages_for 'query' %> <%= hidden_field_tag 'confirm', 1 %>
<%= text_field 'query', 'name', :size => 80 %>
<% if current_role.allowed_to?(:manage_public_queries) %><%= check_box 'query', 'is_public' %>
<% end %><%= check_box_tag 'default_columns', 1, @query.has_default_columns?, :id => 'query_default_columns', :onclick => 'if (this.checked) {Element.hide("columns")} else {Element.show("columns")}' %>