<% # expects 'form' and any of 'collectibles', 'collectible' or '@collectible which can be 1 or more collectibles %> <% collectibles = [collectible] if (!collectibles && collectible) %> <% collectibles = [@collectible] if (!collectibles && @collectible) %> <% unless (collections = collectibles.collect(&:collections).flatten.uniq).empty? %>
<%= form.label :collections_to_remove, ts("Current Collections") %>

<%= ts("Check to remove") %>

<%= checkbox_section(form, :collections_to_remove, collections, :name_method => "title") %>
<% end %>
<%= form.label :collections_to_add, ts("Add to collections") %> <%= link_to_help "add-collectible-to-collection" %>
<%= form.text_field :collections_to_add, autocomplete_options("open_collection_names") %>