otwarchive-symphonyarchive/app/views/collectibles/_collectible_form.html.erb

18 lines
901 B
Text
Raw Normal View History

2026-03-11 22:22:11 +00:00
<% # 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) %>
<!-- collections -->
<% unless (collections = collectibles.collect(&:collections).flatten.uniq).empty? %>
<dt><%= form.label :collections_to_remove, ts("Current Collections") %></dt>
<dd class="listbox group">
<h4 class="heading"><%= ts("Check to remove") %></h4>
<%= checkbox_section(form, :collections_to_remove, collections, :name_method => "title") %>
</dd>
<% end %>
<dt><%= form.label :collections_to_add, ts("Add to collections") %> <%= link_to_help "add-collectible-to-collection" %></dt>
<dd title="add to collection">
<%= form.text_field :collections_to_add, autocomplete_options("open_collection_names") %>
</dd>