Merge branch 'feature/between_now_and_date' of https://dev.finn.de/git/reporting-engine into feature/between_now_and_date

pull/6827/head
jwollert 14 years ago
commit f5d2724fcc
  1. 4
      lib/widget/controls/save_as.rb
  2. 17
      lib/widget/filters.rb

@ -14,6 +14,10 @@ class Widget::Controls::SaveAs < Widget::Controls
maybe_with_help maybe_with_help
end end
def cache_key
super + @subject.name
end
def render_popup_form def render_popup_form
name = content_tag :p do name = content_tag :p do
label_tag(:query_name, l(:field_name)) + label_tag(:query_name, l(:field_name)) +

@ -18,7 +18,7 @@ class Widget::Filters < Widget::Base
:name => nil :name => nil
add_filter += maybe_with_help :icon => { :class => 'filter-icon' }, add_filter += maybe_with_help :icon => { :class => 'filter-icon' },
:tooltip => { :class => 'filter-tip' }, :tooltip => { :class => 'filter-tip' },
:instant_write => false :instant_write => false # help associated with this kind of Widget
add_filter.html_safe add_filter.html_safe
end end
write content_tag(:div, table + select) write content_tag(:div, table + select)
@ -74,6 +74,21 @@ class Widget::Filters < Widget::Base
render_widget Filters::MultiValues, f, :to => html render_widget Filters::MultiValues, f, :to => html
end end
end end
render_filter_help f, :to => html
render_widget Filters::RemoveButton, f, :to => html render_widget Filters::RemoveButton, f, :to => html
end end
##Renders help for a filter (chainable)
def render_filter_help(filter, options = {})
html = content_tag :td, :width => "25px" do
if filter.help_text # help associated with the chainable this Widget represents
render_widget Widget::Controls::Help, filter.help_text
end
end
if canvas = options[:to]
canvas << "\n" << html
else
html
end
end
end end

Loading…
Cancel
Save