puts buttons into fieldset, too

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@2041 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
j.wollert 14 years ago
parent 5cb7417ddd
commit 015a2fdc99
  1. 38
      app/views/cost_reports/index.rhtml

@ -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'>

Loading…
Cancel
Save