Skip to content

Instantly share code, notes, and snippets.

@Mikr0Tik
Created September 29, 2008 08:13
Show Gist options
  • Save Mikr0Tik/13570 to your computer and use it in GitHub Desktop.
Save Mikr0Tik/13570 to your computer and use it in GitHub Desktop.
<%form_for(@main_group, :url=>main_group_path(@main_group), :html=>{:id=>"form_panel"}) do |form|%>
<%=form.select(:group_ids, @groups.collect{|g| [g.code, g.id]}, {},
{:size=>4, :multiple=>true, :id=>'source_baugruppe_ids'})%>
<%=form.submit '>>', {:class=>'btn_shift_right'}%>
<%=form.submit '<<', {:class=>'btn_shift_left'}%>
<%=form.select(:group_ids, @main_group.groups.collect{|g| [g.code, g.id]}, {}, {:size=>4, :multiple=>true, :class=>'destination'})%>
<%-end-%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment