|
|
@ -5,15 +5,28 @@ |
|
|
|
|
|
|
|
|
|
|
|
<%= javascript_include_tag "reporting", :plugin => "redmine_reporting" %> |
|
|
|
<%= javascript_include_tag "reporting", :plugin => "redmine_reporting" %> |
|
|
|
|
|
|
|
|
|
|
|
<table> |
|
|
|
<table width="100%"> |
|
|
|
<% CostQuery::Filter.all.each do |filter| %> |
|
|
|
<tr> |
|
|
|
<tr style="display:block;" id="tr_<%= filter.short_name %>" class="filter"> |
|
|
|
<td> |
|
|
|
<% html_elements(filter).each do |element| %> |
|
|
|
<table> |
|
|
|
<%= |
|
|
|
<% CostQuery::Filter.all.each do |filter| %> |
|
|
|
partial_prefix = File.join(File.basename(File.dirname(__FILE__)), 'filters') |
|
|
|
<tr id="tr_<%= filter.underscore_name %>" class="filter"> |
|
|
|
render :partial => File.join(partial_prefix, element[:name].to_s), :locals => {:element => element, :f => f} |
|
|
|
<% html_elements(filter).each do |element| %> |
|
|
|
%> |
|
|
|
<%= |
|
|
|
<% end %> |
|
|
|
partial_prefix = File.join(File.basename(File.dirname(__FILE__)), 'filters') |
|
|
|
</tr> |
|
|
|
render :partial => File.join(partial_prefix, element[:name].to_s), :locals => {:element => element, :f => f} |
|
|
|
<% end %> |
|
|
|
%> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
</table> |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
<td class="add-filter"> |
|
|
|
|
|
|
|
<%= l(:label_filter_add) %>: |
|
|
|
|
|
|
|
<%#= select_tag 'add_filter_select', options_for_select([["",""]] + query.available_filters.sort{|a,b| a[1][:order]<=>b[1][:order]}.collect{|field| [ field[1][:name] || l(("field_"+field[0].to_s.gsub(/_id$/, "")).to_sym), field[0]] unless query.has_filter?(field[0])}.compact), |
|
|
|
|
|
|
|
:onchange => "add_filter();", |
|
|
|
|
|
|
|
:class => "select-small", |
|
|
|
|
|
|
|
:name => nil %> |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
</table> |