Sha256: 7059f578ae8dceb0df99e9857c853e5dcd08945177f78c3fe595fad799b754e1
Contents?: true
Size: 1.97 KB
Versions: 66
Compression:
Stored size: 1.97 KB
Contents
<% if assets_with_expired_leases.empty? %> <table class="leases table"> <tbody> <tr> <th>Type of Work</th><th>Title</th><th>Current Visibility</th><th>Lease Release Date</th><th>Visibility will Change to</th> </tr> <tr> <td colspan="5"><p>There are no expired leases in effect at this time.</p> </td> </tr> </tbody> </table> <% else %> <%= form_tag leases_path, method: :patch do %> <%= submit_tag 'Deactivate Leases for Selected', class: 'btn btn-primary' %> <table class="leases table"> <thead> <tr> <th></th><th>Type of Work</th><th>Title</th><th>Current Visibility</th><th>Lease Release Date</th><th>Visibility will Change to</th><th></th> </tr> </thead> <tbody> <% assets_with_expired_leases.each_with_index do |curation_concern, i| %> <tr> <td><%= button_for_add_to_batch curation_concern%></td> <td class="human-readable-type"><%= curation_concern.human_readable_type %></td> <td class="title"><%= link_to curation_concern, edit_lease_path(curation_concern) %></td> <td class="current-visibility"><%= visibility_badge(curation_concern.visibility) %></td> <td class="lease-release-date"><%= curation_concern.lease_expiration_date %></td> <td class="visibility-after-lease"><%= visibility_badge(curation_concern.visibility_after_lease) %></td> <td class="actions"><%= link_to 'Deactivate Lease', embargo_path(curation_concern), method: :delete, class: 'btn btn-primary' %></td> </tr> <tr data-behavior="extra" data-id="<%= curation_concern.id %>" class="extra-lease-info"> <td></td> <td colspan=5> <%= check_box_tag "leases[#{i}][copy_visibility]", curation_concern.id, true %> Change all files within <%= curation_concern %> to <%= visibility_badge(curation_concern.visibility_after_lease) %>?</td> </tr> <% end %> </tbody> </table> <% end %> <% end %>
Version data entries
66 entries across 66 versions & 1 rubygems