Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
<div class="group">
<%= f.label :shops, :class => 'label' %>
<div class="multiselect" data-multiselect="/admin/shops/autocomplete_shop_name">
<input class="multiselecttext text_field" data-multiselect="/admin/shops/autocomplete_shop_name" id="match" name="match" type="text" value='<%= t(".search")%>' />
<select class="multiselectmatch" data-multiselect="/admin/shops/autocomplete_shop_name" id="shop_match" multiple="multiple" name="shop_match[]" size="10">
<select class="multiselectselected" data-multiselect="/admin/shops/autocomplete_shop_name" id="shop_selected" multiple="multiple" name="shop_selected[]" size="10">
<%= options_from_collection_for_select(@user.shops, :id, :name) %>
<div class="multiselectbuttons">
<input name="match2selected" type="submit" value='<%= t(".add")%>' />
<br />
<input class="all" name="match2selected" type="submit" value='<%= t(".addall")%>' />
<br />
<input name="selected2match" type="submit" value='<%= t(".remove")%>' />
<br />
<input class="all" name="selected2match" type="submit" value='<%= t(".removeall")%>' />
<%= hidden_field_tag "user[shop_ids][]", "#{@user.shop_ids.join(",")}", :class => 'multiselectids', :id => 'shop_ids_' %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.