Enabled help for filter and group-by legends.

pull/6827/head
Markus Kahl 14 years ago
parent 87e162b09a
commit d0a8d43de6
  1. 16
      assets/stylesheets/help.css
  2. 8
      lib/widget/settings/fieldset.rb

@ -37,3 +37,19 @@
margin-top: -300px;
margin-left: -475px;
}
.filter-legend-icon {
}
.filter-legend-tip {
margin-left: 10px;
}
.group_by-legend-icon {
}
.group_by-legend-tip {
margin-left: 10px;
}

@ -7,8 +7,14 @@ class Widget::Settings::Fieldset < Widget::Base
end
def render
hash = self.hash
content_tag :fieldset, :id => @id, :class => "collapsible collapsed" do
html = content_tag :legend, l(@label), :onclick => "toggleFieldset(this);" #FIXME: onclick
content = maybe_with_help l(@label),
:show_at_id => hash.to_s,
:icon => { :class => "#{@type}-legend-icon" },
:tooltip => { :class => "#{@type}-legend-tip" }
html = content_tag :legend, content,
{:onclick => "toggleFieldset(this);", :id => hash.to_s}, false #FIXME: onclick
html + yield
end
end

Loading…
Cancel
Save