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

Version Path
hydra-collections-8.2.0 app/views/collections/_form_for_select_destination_collection.html.erb
hydra-collections-8.1.1 app/views/collections/_form_for_select_destination_collection.html.erb
hydra-collections-8.1.0 app/views/collections/_form_for_select_destination_collection.html.erb
hydra-collections-8.0.0 app/views/collections/_form_for_select_destination_collection.html.erb
hydra-collections-7.0.0 app/views/collections/_form_for_select_destination_collection.html.erb
hydra-collections-5.0.4 app/views/collections/_form_for_select_destination_collection.html.erb
hydra-collections-6.0.0 app/views/collections/_form_for_select_destination_collection.html.erb
hydra-collections-6.0.0.rc2 app/views/collections/_form_for_select_destination_collection.html.erb
hydra-collections-6.0.0.rc1 app/views/collections/_form_for_select_destination_collection.html.erb
hydra-collections-5.0.3 app/views/collections/_form_for_select_destination_collection.html.erb
hydra-collections-6.0.0.alpha app/views/collections/_form_for_select_destination_collection.html.erb
hydra-collections-5.0.2 app/views/collections/_form_for_select_destination_collection.html.erb
hydra-collections-5.0.1 app/views/collections/_form_for_select_destination_collection.html.erb
hydra-collections-5.0.0 app/views/collections/_form_for_select_destination_collection.html.erb
hydra-collections-4.0.0 app/views/collections/_form_for_select_destination_collection.html.erb
hydra-collections-4.0.0.rc3 app/views/collections/_form_for_select_destination_collection.html.erb
hydra-collections-4.0.0.rc2 app/views/collections/_form_for_select_destination_collection.html.erb
hydra-collections-4.0.0.rc1 app/views/collections/_form_for_select_destination_collection.html.erb
hydra-collections-4.0.0.beta4 app/views/collections/_form_for_select_destination_collection.html.erb
hydra-collections-4.0.0.beta3 app/views/collections/_form_for_select_destination_collection.html.erb