Skip to content

Commit

Permalink
Merge pull request #6964 from samvera/issue-6783
Browse files Browse the repository at this point in the history
Issue 6783
  • Loading branch information
dlpierce authored Nov 8, 2024
2 parents 83413b6 + 9e76ac2 commit c621d57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/views/hyrax/batch_select/_add_button.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div data-behavior="batch-add-button">
<%= check_box_tag "batch_document_ids[]", document.id, false, class:"batch_document_selector", id: "batch_document_#{document.id}", checks: "active" %>
<%= check_box_tag "batch_document_ids[]", document.id, false, class:"batch_document_selector", id: "batch_document_#{document.id}", checks: "active", 'aria-labelledby': "batch_document_#{document.id}" %>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<table class="embargoes table">
<thead>
<tr>
<th><input type="checkbox" id="checkAllBox" class="batch_document_selector"/> <%= t('.select_all') %></th>
<th><input type="checkbox" id="checkAllBox" class="batch_document_selector" aria-labelledby="checkAllBox"/> <label for="checkAllBox"><%= t('.select_all') %></label></th>
<%= render partial: 'table_headers' %>
</tr>
</thead>
Expand All @@ -31,7 +31,7 @@
<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_embargo_path(curation_concern) %></td>
<td class="title"><label for="batch_document_<%= curation_concern.id %>"><%= link_to curation_concern, edit_embargo_path(curation_concern) %></label></td>
<td class="current-visibility"><%= visibility_badge(curation_concern.visibility) %></td>
<td class="embargo-release-date"><%= curation_concern.embargo_release_date %></td>
<td class="visibility-after-embargo"><%= visibility_badge(curation_concern.visibility_after_embargo) %></td>
Expand All @@ -40,9 +40,9 @@
<tr data-behavior="extra" data-id="<%= curation_concern.id %>" class="extra-embargo-info">
<td></td>
<td colspan=5>
<%= check_box_tag "embargoes[#{i}][copy_visibility]", curation_concern.id, true %>
<%= t('.change_all', cc: curation_concern) %>
<%= visibility_badge(curation_concern.visibility_after_embargo) %>?
<%= check_box_tag "embargoes[#{i}][copy_visibility]", curation_concern.id, true, 'aria-labelledby': "embargoes_#{i}_copy_visibility" %>
<label for="embargoes_<%= i %>_copy_visibility"><%= t('.change_all', cc: curation_concern) %>
<%= visibility_badge(curation_concern.visibility_after_embargo) %>?</label>
</td>
</tr>
<% end %>
Expand Down

0 comments on commit c621d57

Please sign in to comment.