Sha256: 56fa1926518b90f4dfa63d5320897e97384bd3e28b515d721da41265373294d5

Contents?: true

Size: 1.61 KB

Versions: 10

Compression:

Stored size: 1.61 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['desc_metadata__date_modified_dtsi'] <=> c2['desc_metadata__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? %>
            <%= button_for_create_collection %>
          <% else %> 
            <%= button_for_update_collection %>
            <%= button_for_create_collection "Add to new Collection" %>
          <% end %> 
        </div>
      </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
worthwhile-0.1.2 app/views/collections/_form_for_select_collection.html.erb
worthwhile-0.1.1 app/views/collections/_form_for_select_collection.html.erb
worthwhile-0.1.0 app/views/collections/_form_for_select_collection.html.erb
worthwhile-0.0.3 app/views/collections/_form_for_select_collection.html.erb
worthwhile-0.0.2 app/views/collections/_form_for_select_collection.html.erb
worthwhile-0.0.1 app/views/collections/_form_for_select_collection.html.erb
sufia-4.0.0.rc2 app/views/collections/_form_for_select_collection.html.erb
sufia-4.0.0.rc1 app/views/collections/_form_for_select_collection.html.erb
sufia-4.0.0.beta4 app/views/collections/_form_for_select_collection.html.erb
sufia-4.0.0.beta3 app/views/collections/_form_for_select_collection.html.erb