Created
May 9, 2011 08:34
-
-
Save rnaveiras/962237 to your computer and use it in GitHub Desktop.
multiselect-view
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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")%>' /> | |
<br/><br/> | |
<select class="multiselectmatch" data-multiselect="/admin/shops/autocomplete_shop_name" id="shop_match" multiple="multiple" name="shop_match[]" size="10"> | |
</select> | |
<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) %> | |
</select> | |
<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")%>' /> | |
</div> | |
<%= hidden_field_tag "user[shop_ids][]", "#{@user.shop_ids.join(",")}", :class => 'multiselectids', :id => 'shop_ids_' %> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment