Mercurial > hg > soundsoftware-site
view .svn/pristine/9e/9e92c2a6a5fdf412bb864b0feca4c0407899b580.svn-base @ 1458:b1f4c9a2af24 bug_794
Makes the default radio button checked by default -- this should fix bug #794.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Mon, 11 Nov 2013 18:25:22 +0000 |
parents | 038ba2d95de8 |
children |
line wrap: on
line source
<table class="query-columns"> <tr> <td style="padding-left:0"> <%= label_tag "available_columns", l(:description_available_columns) %> <br /> <%= select_tag 'available_columns', options_for_select((query.available_inline_columns - query.columns).collect {|column| [column.caption, column.name]}), :multiple => true, :size => 10, :style => "width:150px", :ondblclick => "moveOptions(this.form.available_columns, this.form.selected_columns);" %> </td> <td class="buttons"> <input type="button" value="→" onclick="moveOptions(this.form.available_columns, this.form.selected_columns);" /><br /> <input type="button" value="←" onclick="moveOptions(this.form.selected_columns, this.form.available_columns);" /> </td> <td> <%= label_tag "selected_columns", l(:description_selected_columns) %> <br /> <%= select_tag((defined?(tag_name) ? tag_name : 'c[]'), options_for_select(query.inline_columns.collect {|column| [column.caption, column.name]}), :id => 'selected_columns', :multiple => true, :size => 10, :style => "width:150px", :ondblclick => "moveOptions(this.form.selected_columns, this.form.available_columns);") %> </td> <td class="buttons"> <input type="button" value="↑" onclick="moveOptionUp(this.form.selected_columns);" /><br /> <input type="button" value="↓" onclick="moveOptionDown(this.form.selected_columns);" /> </td> </tr> </table> <% content_for :header_tags do %> <%= javascript_include_tag 'select_list_move' %> <% end %>