Sha256: 553f154ab01ee7e4d044400112a28e7257495af05e0abd871fb18a6803084be6

Contents?: true

Size: 1.91 KB

Versions: 13

Compression:

Stored size: 1.91 KB

Contents

<% if assets_with_expired_leases.blank? %>
  <table class="leases table">
    <thead>
      <tr>
        <%= render partial: 'table_headers' %>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td colspan="5" class="text-center">
          <p><%= t('.missing') %></p>
        </td>
      </tr>
    </tbody>
  </table>

<% else %>

  <%= form_tag leases_path, method: :patch do %>
    <%= submit_tag t('.deactivate_selected'), class: 'btn btn-primary' %>
    <table class="leases table">
      <thead>
        <tr>
          <th></th>
          <%= render partial: 'table_headers' %>
          <th></th>
        </tr>
      </thead>
      <tbody>
      <% assets_with_expired_leases.each_with_index do |curation_concern, i| %>
        <tr>
          <td><%= render 'hyrax/batch_select/add_button', document: 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 t('.deactivate'), lease_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 %>
            <%= t('.change_all', cc: curation_concern) %>
            <%= visibility_badge(curation_concern.visibility_after_lease) %>?
          </td>
        </tr>
      <% end %>
      </tbody>
    </table>
  <% end %>

<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
hyrax-2.0.3 app/views/hyrax/leases/_list_expired_active_leases.html.erb
hyrax-2.0.2 app/views/hyrax/leases/_list_expired_active_leases.html.erb
hyrax-2.1.0.beta1 app/views/hyrax/leases/_list_expired_active_leases.html.erb
hyrax-2.0.1 app/views/hyrax/leases/_list_expired_active_leases.html.erb
hyrax-2.0.0 app/views/hyrax/leases/_list_expired_active_leases.html.erb
hyrax-2.0.0.rc3 app/views/hyrax/leases/_list_expired_active_leases.html.erb
hyrax-2.0.0.rc2 app/views/hyrax/leases/_list_expired_active_leases.html.erb
hyrax-2.0.0.rc1 app/views/hyrax/leases/_list_expired_active_leases.html.erb
hyrax-2.0.0.beta5 app/views/hyrax/leases/_list_expired_active_leases.html.erb
hyrax-2.0.0.beta4 app/views/hyrax/leases/_list_expired_active_leases.html.erb
hyrax-2.0.0.beta3 app/views/hyrax/leases/_list_expired_active_leases.html.erb
hyrax-2.0.0.beta2 app/views/hyrax/leases/_list_expired_active_leases.html.erb
hyrax-2.0.0.beta1 app/views/hyrax/leases/_list_expired_active_leases.html.erb