<%= 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, @query.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?, :class => (User.current.admin? ? '' : 'disable-unless-private') %>
<% unless params[:gantt] %>
<% else %>
<% end %>
<% end %>
<% unless params[:gantt] %>
<%= content_tag 'fieldset', :id => 'columns' do %>