Sha256: 7a5e65adf3863c42ce59d40bf257bd06b0f68af64117fd4f93e68c68be8a5319

Contents?: true

Size: 1.74 KB

Versions: 46

Compression:

Stored size: 1.74 KB

Contents

<div class="modal fade" id="collection-list-container">
  <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
          <h4 class="modal-title">Add to collection</h4>
        </div>
        <div class="modal-body">
          <% if user_collections.blank? %>
            <em> You do not have access to any existing collections. You may create a new collection.</em><br><br><br><br>
          <% else %>
            Select the collection to add your files to:
            <div class="collection-list">
              <ul>
                <% user_collections.sort! { |c1,c2| c1['date_modified_dtsi'] <=> c2['date_modified_dtsi'] }  %>
                <% user_collections.each do |collection| %>
                  <li> <%= radio_button_tag(:id, collection.id, true, class: "collection-selector") %><%= label_tag(:collection, collection.title) %> </li>
                <% end %>
              </ul>
            </div><!-- collection-list -->
          <% end %> <!-- else -->
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
          <% if user_collections.blank? %>
            <%= render '/collections/button_create_collection', label: 'Create Collection' %>
          <% else %> 
            <%= render '/collections/button_for_update_collection', label: 'Update Collection', collection_id: 'collection_replace_id' %>
            <%= render '/collections/button_create_collection', label: 'Add to new Collection' %>
          <% end %> 
        </div>
      </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 app/views/collections/_form_for_select_collection.html.erb
curation_concerns-1.7.7 app/views/collections/_form_for_select_collection.html.erb
curation_concerns-2.0.0 app/views/collections/_form_for_select_collection.html.erb
curation_concerns-2.0.0.rc2 app/views/collections/_form_for_select_collection.html.erb
curation_concerns-1.7.6 app/views/collections/_form_for_select_collection.html.erb
curation_concerns-1.7.5 app/views/collections/_form_for_select_collection.html.erb
curation_concerns-1.7.4 app/views/collections/_form_for_select_collection.html.erb
curation_concerns-1.7.3 app/views/collections/_form_for_select_collection.html.erb
curation_concerns-1.7.2 app/views/collections/_form_for_select_collection.html.erb
curation_concerns-2.0.0.rc1 app/views/collections/_form_for_select_collection.html.erb
curation_concerns-1.7.1 app/views/collections/_form_for_select_collection.html.erb
curation_concerns-1.7.0 app/views/collections/_form_for_select_collection.html.erb
curation_concerns-1.7.0.beta1 app/views/collections/_form_for_select_collection.html.erb
curation_concerns-1.6.3 app/views/collections/_form_for_select_collection.html.erb
curation_concerns-1.6.2 app/views/collections/_form_for_select_collection.html.erb
curation_concerns-1.6.1 app/views/collections/_form_for_select_collection.html.erb
curation_concerns-1.6.0 app/views/collections/_form_for_select_collection.html.erb
curation_concerns-1.5.0 app/views/collections/_form_for_select_collection.html.erb
curation_concerns-1.4.0 app/views/collections/_form_for_select_collection.html.erb
curation_concerns-1.3.3 app/views/collections/_form_for_select_collection.html.erb