<% content_for :header_tags do %> <%= javascript_include_tag "select_list_move_optgroup", :plugin => "redmine_reporting" %> <%= javascript_include_tag "reporting", :plugin => "redmine_reporting" %> <% end %> <% if @custom_error %>
<%= @custom_error %>
<% end %>

<%= l(:label_cost_report) %>

<% html_title( l(:label_cost_report) ) %> <% form_for @query, :url => {:controller => 'cost_report', :action => 'new' }, :html => {:id => 'query_form', :method => :post} do |query_form| %>
"> <%= l(:label_filter_plural) %>
><%= render :partial => 'filters', :locals => {:f => query_form, :query => @query} %>
<%= l(:label_group_by) %>
<%= render :partial => 'group_by', :locals => {:f => query_form, :query => @query} %>

<%= link_to_remote l(:button_apply), { :url => { :set_filter => 1 }, :complete => "set_filters()", :update => "content", :with => "Form.serialize('query_form')" }, :class => 'icon icon-checked' %> <%= link_to_remote l(:button_clear), { :url => { :set_filter => 1 }, :complete => "set_filters()", :update => "content", }, :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 %>

<% end %>

Die schöne Tabelle:

<%= render :partial => "cost_report_table", :locals => {:query => @query, :walker => @query.walker} %>