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