To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 9e / 9e92c2a6a5fdf412bb864b0feca4c0407899b580.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (1.62 KB)
| 1 | 1296:038ba2d95de8 | Chris | <table class="query-columns"> |
|---|---|---|---|
| 2 | <tr> |
||
| 3 | <td style="padding-left:0"> |
||
| 4 | <%= label_tag "available_columns", l(:description_available_columns) %> |
||
| 5 | <br /> |
||
| 6 | <%= select_tag 'available_columns', |
||
| 7 | options_for_select((query.available_inline_columns - query.columns).collect {|column| [column.caption, column.name]}),
|
||
| 8 | :multiple => true, :size => 10, :style => "width:150px", |
||
| 9 | :ondblclick => "moveOptions(this.form.available_columns, this.form.selected_columns);" %> |
||
| 10 | </td> |
||
| 11 | <td class="buttons"> |
||
| 12 | <input type="button" value="→" |
||
| 13 | onclick="moveOptions(this.form.available_columns, this.form.selected_columns);" /><br /> |
||
| 14 | <input type="button" value="←" |
||
| 15 | onclick="moveOptions(this.form.selected_columns, this.form.available_columns);" /> |
||
| 16 | </td> |
||
| 17 | <td> |
||
| 18 | <%= label_tag "selected_columns", l(:description_selected_columns) %> |
||
| 19 | <br /> |
||
| 20 | <%= select_tag((defined?(tag_name) ? tag_name : 'c[]'), |
||
| 21 | options_for_select(query.inline_columns.collect {|column| [column.caption, column.name]}),
|
||
| 22 | :id => 'selected_columns', :multiple => true, :size => 10, :style => "width:150px", |
||
| 23 | :ondblclick => "moveOptions(this.form.selected_columns, this.form.available_columns);") %> |
||
| 24 | </td> |
||
| 25 | <td class="buttons"> |
||
| 26 | <input type="button" value="↑" onclick="moveOptionUp(this.form.selected_columns);" /><br /> |
||
| 27 | <input type="button" value="↓" onclick="moveOptionDown(this.form.selected_columns);" /> |
||
| 28 | </td> |
||
| 29 | </tr> |
||
| 30 | </table> |
||
| 31 | |||
| 32 | <% content_for :header_tags do %> |
||
| 33 | <%= javascript_include_tag 'select_list_move' %> |
||
| 34 | <% end %> |