@@ -1,24 +1,24 | |||
|
1 | 1 | <table style="border-collapse: collapse; border:0;"> |
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
|
|
|
12 |
|
|
|
13 |
|
|
|
14 |
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
2 | <tr> | |
|
3 | <td style="padding-left:0"><%= select_tag 'available_columns', | |
|
4 | options_for_select((query.available_columns - query.columns).collect {|column| [column.caption, column.name]}), | |
|
5 | :multiple => true, :size => 10, :style => "width:150px" %> | |
|
6 | </td> | |
|
7 | <td align="center" valign="middle"> | |
|
8 | <input type="button" value="→" | |
|
9 | onclick="moveOptions(this.form.available_columns, this.form.selected_columns);" /><br /> | |
|
10 | <input type="button" value="←" | |
|
11 | onclick="moveOptions(this.form.selected_columns, this.form.available_columns);" /> | |
|
12 | </td> | |
|
13 | <td><%= select_tag 'c[]', | |
|
14 | options_for_select(query.columns.collect {|column| [column.caption, column.name]}), | |
|
15 | :id => 'selected_columns', :multiple => true, :size => 10, :style => "width:150px" %> | |
|
16 | </td> | |
|
17 | <td align="center" valign="middle"> | |
|
18 | <input type="button" value="↑" onclick="moveOptionUp(this.form.selected_columns);" /><br /> | |
|
19 | <input type="button" value="↓" onclick="moveOptionDown(this.form.selected_columns);" /> | |
|
20 | </td> | |
|
21 | </tr> | |
|
22 | 22 | </table> |
|
23 | 23 | |
|
24 | 24 | <% content_for :header_tags do %> |
General Comments 0
You need to be logged in to leave comments.
Login now