Sha256: 28993b478943a69114dcde1c21a82d1f20ed4d54b670fe5067d6d95360041026
Contents?: true
Size: 1.49 KB
Versions: 3
Compression:
Stored size: 1.49 KB
Contents
<h2>Related Works</h2> <p>List works that are related to this one.</p> <%= form_for [:curation_concern, curation_concern], method: :patch, html: {id:"edit_related_works"} do |f| %> <%#= f.select :related_work_ids, options_from_collection_for_select(curation_concern.related_works, :id, :title, curation_concern.related_work_ids),{include_hidden: false}, { multiple: true, class:"autocomplete chosen-select", "data-source"=>catalog_index_path, "data-exclude"=>"#{curation_concern.pid}", "data-placeholder"=>"Choose works to associate..."} %> <%= f.text_field :related_work_tokens, class:"autocomplete tokens", "data-url"=>catalog_index_path, "data-load"=>curation_concern.related_works.to_json, "data-exclude"=>"[#{curation_concern.pid.inspect}]" %> <%= f.submit "Update Related Works", class: 'btn btn-primary' %> <% end %> <table class="table table-striped <%= dom_class(curation_concern) %> referenced_by_works with-headroom"> <caption class="table-heading"> <h2>Referenced by</h2> <p>Works that list this one in as being related to them.</p> </caption> <% if curation_concern.referenced_by_works.present? %> <thead> <tr> <th>Work Title</th> </tr> </thead> <tbody> <% curation_concern.referenced_by_works.each do |related_work| %> <tr class="referenced_by_works attributes"> <td class="attribute title"><%= link_to related_work.title, polymorphic_path([:curation_concern, related_work]) %></td> </tr> <% end %> </tbody> <% end %> </table>
Version data entries
3 entries across 3 versions & 1 rubygems