show --add group-by-- in group-by select-box

pull/6827/head
Philipp Tessenow 14 years ago
parent bd428a9510
commit da723946c1
  1. 4
      lib/widget/group_bys.rb

@ -21,7 +21,9 @@ class Widget::GroupBys < Widget::Base
:class => 'drag_target drag_container',
:'data-initially-selected' => initially_selected.to_json.gsub('"', "'") do
content_tag :select, :id => "add_group_by_#{type}", :class => 'select-small' do
content = tag :option, :value => ''
content = content_tag :option, :value => '' do
"-- #{l(:label_group_by_add)} --"
end
content += engine::GroupBy.all_grouped.sort_by do |label, group_by_ary|
l(label)
end.collect do |label, group_by_ary|

Loading…
Cancel
Save