Sha256: 98729f34851e6abc914992050b0c6edcfdd03d0e432265fb755e310c0ddfe22c
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
<table class="table table-striped <%= dom_class(curation_concern) %> collections with-headroom"> <caption class="table-heading"> <h2>Collections</h2> </caption> <% if curation_concern.collections.present? %> <thead> <tr> <th>Collection Title</th> </tr> </thead> <tbody> <% curation_concern.collections.each do |collection| %> <tr class="collection attributes"> <td class="attribute title"><%= link_to collection.title, collection %></td> </tr> <% end %> </tbody> <% end %> </table> <%- if has_any_collections? %> <%= form_for [:curation_concern, curation_concern], method: :patch do |f| %> <%= f.select :collection_ids, options_from_collection_for_select(current_user.collections.to_a, :id, :title, curation_concern.collection_ids),{include_hidden: false}, { multiple: true} %> <%= f.submit "Assign to collections", class: 'btn btn-primary' %> <% end %> <%- else %> <div class="span12 main-header"> <p> You have no collections yet </p> </div> <%- end %>
Version data entries
3 entries across 3 versions & 1 rubygems