<%= hidden_field_tag 'gantt', '1' if params[:gantt] %>
<%= hidden_field_tag 'calendar', '1' if params[:calendar] %>
<%= hidden_field_tag 'admin_projects', '1' if params[:admin_projects] %>
<%= text_field 'query', 'name', :size => 80 %>
<%= text_field 'query', 'description', :size => 80 %>
<% if User.current.admin? ||
User.current.allowed_to?(:manage_public_queries, @query.project) %>
<% unless @query.type == 'ProjectQuery' %>
<% Role.givable.sorted.each do |role| %>
<% end %>
<%= hidden_field_tag 'query[role_ids][]', '' %>
<% end %>
<% end %>
<% unless @query.type == 'ProjectQuery' %>
<%= check_box_tag 'query_is_for_all', 1, @query.project.nil?, :class => (User.current.admin? ? '' : 'disable-unless-private') %>
<% end %>
<% unless params[:calendar] %>
<% end %>
<% end %>
<% unless params[:calendar] %>
<%= content_tag 'fieldset', :id => 'columns' do %>