diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-23 12:04:29 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-23 12:04:29 +0000 |
commit | 1ac8fd8c4214f6cf829230a1dc067faf7c7e463a (patch) | |
tree | e04e40630876b6b323b02257255a2e4028890ce7 /app/views/queries/_columns.html.erb | |
parent | 998928ecdfac33424dc644e8acd202f714d7c1ec (diff) | |
download | redmine-1ac8fd8c4214f6cf829230a1dc067faf7c7e463a.tar.gz redmine-1ac8fd8c4214f6cf829230a1dc067faf7c7e463a.zip |
Adds helpers for query columns selection.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11451 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/queries/_columns.html.erb')
-rw-r--r-- | app/views/queries/_columns.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/queries/_columns.html.erb b/app/views/queries/_columns.html.erb index 329ffd67c..f359c1615 100644 --- a/app/views/queries/_columns.html.erb +++ b/app/views/queries/_columns.html.erb @@ -4,7 +4,7 @@ <%= label_tag "available_columns", l(:description_available_columns) %> <br /> <%= select_tag 'available_columns', - options_for_select((query.available_inline_columns - query.columns).reject(&:frozen?).collect {|column| [column.caption, column.name]}), + options_for_select(query_available_inline_columns_options(query)), :multiple => true, :size => 10, :style => "width:150px", :ondblclick => "moveOptions(this.form.available_columns, this.form.selected_columns);" %> </td> @@ -18,7 +18,7 @@ <%= label_tag "selected_columns", l(:description_selected_columns) %> <br /> <%= select_tag((defined?(tag_name) ? tag_name : 'c[]'), - options_for_select((query.inline_columns & query.available_inline_columns).reject(&:frozen?).collect {|column| [column.caption, column.name]}), + options_for_select(query_selected_inline_columns_options(query)), :id => 'selected_columns', :multiple => true, :size => 10, :style => "width:150px", :ondblclick => "moveOptions(this.form.selected_columns, this.form.available_columns);") %> </td> |