Sha256: da0d539885400faa8800b8f8597dfc7690a6d24b846600e14ab96451cd8da381
Contents?: true
Size: 1.25 KB
Versions: 37
Compression:
Stored size: 1.25 KB
Contents
<% if user_collections.nil?%> <b> Make sure you have included Hydra::Collections::SelectsCollections in your controller for this page and added a before filter with one of the find_collections variations depending on your access level: find_collections, find_collections_with_read_access, find_collections_with_edit_access </b> <% elsif user_collections.blank? %> <b> You do not have access to any existing collections please create a collection. </b> <% else %> Please Select your collection to add you files to: <%= form_tag(collections.collection_path(@collection), :method => "put") do %> <input type="hidden" name="test" value="val" /> <%= hash_as_hidden_fields({:collection =>{members:"move"}}) %> <div class="collection-list"> <ul> <% user_collections.each do |collection| %> <li> <%= radio_button_tag(:destination_collection_id, collection.id, false, :class => "collection-selector") %><%= label_tag(:collection, collection.title) %> </li> <% end %> </ul> </div> <%= button_to "Move to Selected Collection", collections.collections_path, :method=>:put, :class=>"btn btn-primary collection-update submits-batches", 'data-behavior'=>'hydra-collections', :id=>'hydra-collection-move' %> <% end %> <% end %>
Version data entries
37 entries across 37 versions & 1 rubygems