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">×</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