|
|
|
@ -23,27 +23,27 @@ |
|
|
|
|
<div <%= 'style="display:none;"' unless @query.new_record? %>><%= render :partial => 'filters', :locals => {:f => query_form, :query => @query} %></div> |
|
|
|
|
<h1><%= l(:label_group_by) %></h1> |
|
|
|
|
<div <%= 'style="display:none;"' unless @query.new_record? %>><%= render :partial => 'group_by', :locals => {:f => query_form, :query => @query} %></div> |
|
|
|
|
|
|
|
|
|
<%= render :partial => 'restore_query', :locals => {:f => query_form, :query => @query} %> |
|
|
|
|
<p class="buttons"> |
|
|
|
|
<%= link_to_remote "<span><em>#{l(:button_apply)}</em></span>", |
|
|
|
|
{ :url => { :set_filter => 1 }, |
|
|
|
|
:condition => 'Ajax.activeRequestCount === 0', |
|
|
|
|
:before => 'select_active_group_bys();', |
|
|
|
|
:after => 'reset_group_by_selects();', |
|
|
|
|
:update => "content", |
|
|
|
|
:with => "Form.serialize('query_form')", |
|
|
|
|
:eval_scripts => true |
|
|
|
|
}, :class => 'button apply' %> |
|
|
|
|
<%= link_to_function l(:button_clear), "disable_all_filters(); disable_all_group_bys();", :class => 'icon icon-reload' %> |
|
|
|
|
<% if User.current.allowed_to?(:save_queries, @project, :global => true) %> |
|
|
|
|
<% |
|
|
|
|
#link_to l(:button_save), {}, :onclick => "$('query_form').submit(); return false;", :class => 'icon icon-save' |
|
|
|
|
%> |
|
|
|
|
<% end %> |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
</fieldset> |
|
|
|
|
|
|
|
|
|
<%= render :partial => 'restore_query', :locals => {:f => query_form, :query => @query} %> |
|
|
|
|
<p class="buttons"> |
|
|
|
|
<%= link_to_remote "<span><em>#{l(:button_apply)}</em></span>", |
|
|
|
|
{ :url => { :set_filter => 1 }, |
|
|
|
|
:condition => 'Ajax.activeRequestCount === 0', |
|
|
|
|
:before => 'select_active_group_bys();', |
|
|
|
|
:after => 'reset_group_by_selects();', |
|
|
|
|
:update => "content", |
|
|
|
|
:with => "Form.serialize('query_form')", |
|
|
|
|
:eval_scripts => true |
|
|
|
|
}, :class => 'button apply' %> |
|
|
|
|
<%= link_to_function l(:button_clear), "disable_all_filters(); disable_all_group_bys();", :class => 'icon icon-reload' %> |
|
|
|
|
<% if User.current.allowed_to?(:save_queries, @project, :global => true) %> |
|
|
|
|
<% |
|
|
|
|
#link_to l(:button_save), {}, :onclick => "$('query_form').submit(); return false;", :class => 'icon icon-save' |
|
|
|
|
%> |
|
|
|
|
<% end %> |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class='cost_types'> |
|
|
|
|