Sha256: c1f8905c1d71091c96c75156dc07b43fbeaf85a0ff571b5766a1d7c873835f97

Contents?: true

Size: 1.37 KB

Versions: 39

Compression:

Stored size: 1.37 KB

Contents

<% thing = Collection.new %>
<% 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_replace_id'), :method => "put") do %>
  <%#= form_for thing, :url => , :html => {:multipart => true, :class => 'form-horizontal'}, :method => :put do |f| %>
    <input type="hidden" name="test" value="val" />
    <%= hash_as_hidden_fields({:collection =>{members:"add"}}) %>
    <div class="collection-list">
      <ul>
      <% user_collections.each do |collection| %>
        <li> <%= radio_button_tag(:id, collection.id, false, :class => "collection-selector") %><%= label_tag(:collection, collection.title) %> </li>
      <% end %>
      </ul>
    </div>
    <%= button_to "Update Collection", collections.collections_path, :method=>:put, :class=>"btn btn-primary collection-update submits-batches", 'data-behavior'=>'hydra-collections', :id=>'hydra-collection-add' %>
  <% end %>
<% end %>

Version data entries

39 entries across 39 versions & 1 rubygems

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