% content_tag 'fieldset', :id => 'columns', :style => (query.has_default_columns? ? 'display:none;' : nil) do %> <%= hidden_field_tag 'query[column_names][]', '' %>
<%= select_tag 'available_columns', options_for_select((query.available_columns - query.columns).collect {|column| [l("field_#{column.name}"), column.name]}), :multiple => true, :size => 10, :style => "width:150px" %> |
|
<%= select_tag 'query[column_names][]', options_for_select(@query.columns.collect {|column| [l("field_#{column.name}"), column.name]}), :id => 'selected_columns', :multiple => true, :size => 10, :style => "width:150px" %> |