diff --git a/app/forms/hyrax/forms/work_embargo_form.rb b/app/forms/hyrax/forms/work_embargo_form.rb index 4a86f11a0b..0dbda2bd55 100644 --- a/app/forms/hyrax/forms/work_embargo_form.rb +++ b/app/forms/hyrax/forms/work_embargo_form.rb @@ -31,6 +31,12 @@ def human_readable_type def model_name model.to_model.model_name end + + ## + # @return [String] + def to_s + [*model.title].join(' ') + end end end end diff --git a/app/forms/hyrax/forms/work_lease_form.rb b/app/forms/hyrax/forms/work_lease_form.rb index 469ac65cb9..1659d3e620 100644 --- a/app/forms/hyrax/forms/work_lease_form.rb +++ b/app/forms/hyrax/forms/work_lease_form.rb @@ -31,6 +31,12 @@ def human_readable_type def model_name model.to_model.model_name end + + ## + # @return [String] + def to_s + [*model.title].join(' ') + end end end end diff --git a/app/views/hyrax/embargoes/_list_expired_active_embargoes.html.erb b/app/views/hyrax/embargoes/_list_expired_active_embargoes.html.erb index 37889239e8..be2410c13b 100644 --- a/app/views/hyrax/embargoes/_list_expired_active_embargoes.html.erb +++ b/app/views/hyrax/embargoes/_list_expired_active_embargoes.html.erb @@ -35,15 +35,15 @@ <%= visibility_badge(curation_concern.visibility) %> <%= curation_concern.embargo_release_date %> <%= visibility_badge(curation_concern.visibility_after_embargo) %> - <%= link_to t('.deactivate'), embargo_path(curation_concern), method: :delete, class: 'btn btn-primary' %> - + <%= check_box_tag "embargoes[#{i}][copy_visibility]", curation_concern.id, true, 'aria-labelledby': "embargoes_#{i}_copy_visibility" %> + <%= link_to t('.deactivate'), embargo_path(curation_concern), method: :delete, class: 'btn btn-primary' %> <% end %> diff --git a/app/views/hyrax/leases/_list_expired_active_leases.html.erb b/app/views/hyrax/leases/_list_expired_active_leases.html.erb index 87bc6e8576..2b25e711e7 100644 --- a/app/views/hyrax/leases/_list_expired_active_leases.html.erb +++ b/app/views/hyrax/leases/_list_expired_active_leases.html.erb @@ -36,15 +36,15 @@ <%= visibility_badge(curation_concern.visibility) %> <%= curation_concern.lease_expiration_date %> <%= visibility_badge(curation_concern.visibility_after_lease) %> - <%= link_to t('.deactivate'), lease_path(curation_concern), method: :delete, class: 'btn btn-primary' %> - + <%= check_box_tag "leases[#{i}][copy_visibility]", curation_concern.id, true, 'aria-labelledby': "leases_#{i}_copy_visibility" %> + <%= link_to t('.deactivate'), lease_path(curation_concern), method: :delete, class: 'btn btn-primary' %> <% end %>