<%= hidden_field_tag 'gantt', '1' if params[:gantt] %>
<%= text_field 'query', 'name', :size => 80 %>
<% if User.current.admin? || User.current.allowed_to?(:manage_public_queries, @project) %>
<% Role.givable.sorted.each do |role| %>
<% end %>
<%= hidden_field_tag 'query[role_ids][]', '' %>
<% end %>
<%= check_box_tag 'query_is_for_all', 1, @query.project.nil?,
:disabled => (!@query.new_record? && (@query.project.nil? || (@query.is_public? && !User.current.admin?))) %>
<%= content_tag 'fieldset', :id => 'columns', :style => (query.has_default_columns? ? 'display:none;' : nil) do %>