<%= form_tag({ controller: '/queries', action: 'new' }, id: 'query_form', name: 'queryForm', novalidate: true) do %> <%= hidden_field_tag('project_id', project.to_param) if project %>

<% if query.new_record? && User.current.allowed_to?(:save_queries, project, :global => true) %> Save <% end %>

<% end %>